channel_authorize
The channel_authorize
method creates a signature that can be used to redeem a specific amount of XRP from a payment channel.
Request Format
An example of the request format:
The request must specify exactly one of secret
, seed
, seed_hex
, or passphrase
.
Warning: Do not send secret keys to untrusted servers or through 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. Otherwise, eavesdroppers could use your secret key to sign claims and take all the money from this payment channel and anything else using the same key pair. See Set Up Secure Signing for instructions.
Response Format
An example of a successful response:
The response follows the [standard format][], with a successful result containing the following fields:
Possible Errors
Any of the [universal error types][].
badKeyType
- Thekey_type
parameter in the request is not a valid key type. (Valid types aresecp256k1
ored25519
.)badSeed
- Thesecret
in the request is not a valid secret key.channelAmtMalformed
- Theamount
in the request is not a valid [XRP amount][XRP, in drops].channelMalformed
- Thechannel_id
in the request is not a valid Channel ID. The Channel ID should be a 256-bit (64-character) hexadecimal string.
Last updated