Home

channel_authorize

POST
https://xrp.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Generate a signature for a claim against a specific payment channel. This method creates a cryptographic signature that can be used to claim XRP from a payment channel.

Body

application/json

Generate a signature for a claim against a specific payment channel. This method creates a cryptographic signature that can be used to claim XRP from a payment channel.

JSON-RPC request payload.

methodstringchannel_authorizerequired

The JSON-RPC method name

paramsArray<object>required

Ordered JSON-RPC method parameters.

Show child attributes
channel_idstringrequired

The unique identifier of the payment channel. This is 64-character hexadecimal string.

seedstringrequired

The secret seed of the account that owns the payment channel. Used to generate the signature. Should be kept secure.

key_typestringsecp256k1ed25519

The cryptographic key type to use for signing. Defaults to "secp256k1" if not specified.

amountstringrequired

The amount of XRP to authorize for the claim, in drops. Represented as a string to maintain precision.

Response

200OK

HTTP 200 response for channel_authorize. The body contains either a successful result or a method-level JSON-RPC error.

400Bad Request

Bad Request. The request body is malformed or contains invalid JSON-RPC parameters.

401Unauthorized

Unauthorized: API key is present but rejected by the NOWNodes gateway.

405Method Not Allowed

Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.

422Unprocessable Entity

Missing API key. The NOWNodes gateway returns plain text for this error.

500Internal Server Error

Internal Server Error. The gateway or node failed while processing the request.