channel_authorize RPC Method
The channel_authorize method requires the request to include one of the following parameters: 'secret', 'seed', 'seed_hex', or 'passphrase', specifying the necessary authentication information. Please refrain from transmitting secret keys to untrusted servers or via unsecured network connections (This includes the secret, seed, seed_hex, or passphrase fields of this request). You should only use this method on a secure, encrypted network connection to a server you run or fully trust with your funds. Failure to do so may expose your secret key to eavesdroppers, enabling them to sign claims and access all funds within the payment channel and any other systems utilizing the same key pair. For detailed instructions, refer to the Set Up Secure Signing guidelines.
Parameters
channel_id
string
REQUIRED
The payment channel identified by its unique ID
seed
string
The secret key used to sign the claim
seed_hex
string
The secret seed to use to sign the claim
passphrase
string
The passphrase used to sign the claim
key_type
string
The signing algorithm for the provided cryptographic key pair. It can be either 'secp256k1' or 'ed25519'. The default signing algorithm is 'secp256k1'
amount
string
REQUIRED
The cumulative amount of XRP, expressed in drops, used for authorization in the payment channel
Returns
result
object
An object which contains the following fields:
signature
string
The signature for the claim, provided as a hexadecimal value
status
string
The authorization status
warnings
array
An array of warning objects, each containing the following fields:
id
integer
The ID of the warning
message
string
The warning message
Request
1curl https://docs-demo.xrp-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{5"method": "channel_authorize",6"params": [{7"channel_id": "5DB01B7FFED6B67E6B0414DED11E051D2EE2B7619CE0EAA6286D67A3A4D5BDB3",8"seed": "SECRET_SEED",9"key_type": "secp256k1",10"amount": "1000000"11}],"id":1,"jsonrpc":"2.0"}'12
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free