Skip to main content

channel_verify RPC Method

Verify the validity of a signature that can be utilized to redeem a specific amount of XRP from a payment channel

Updated on
Oct 4, 2023

channel_verify RPC Method

Parameters

channel_id
string
REQUIRED
The channel ID associated with the account channel that's used to uniquely identify the channel
signature
string
REQUIRED
The signature to verify
public_key
string
REQUIRED
The public key corresponding to the private key used to generate the signature
amount
string
REQUIRED
The authorized amount of XRP, in drops, indicated by the provided signature

Returns

result
object
An object which contains the following fields:
signature_verified
boolean
A boolean flag indicating whether the signature is valid for the stated amount, channel and public key
status
string
The status of the request
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
1
curl https://docs-demo.xrp-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"method": "channel_verify",
6
"params": [{
7
"channel_id": "5DB01B7FFED6B67E6B0414DED11E051D2EE2B7619CE0EAA6286D67A3A4D5BDB3",
8
"signature": "304402204EF0AFB78AC23ED1C472E74F4299C0C21F1B21D07EFC0A3838A420F76D783A400220154FB11B6F54320666E4C36CA7F686C16A3A0456800BBC43746F34AF50290064",
9
"public_key": "aB44YfzW24VDEJQ2UuLPV2PvqcPCSoLnL7y5M1EzhdW4LnK5xMS3",
10
"amount": "1000000"
11
}],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free