xrp

XRP (XRP)

Method: POST channel_verify

dropdown

POST channel_verify

The channel_verify method checks the validity of a signature that can be used to redeem a specific amount of XRP from a payment channel.

Parameters

amount - String

The amount of XRP, in drops, the provided signature authorizes.

channel_id - String

The Channel ID of the channel that provides the XRP. This is a 64-character hexadecimal string.

public_key - String

The public key of the channel and the key pair that was used to create the signature, in hexadecimal or the XRP Ledger's base58 format.

signature - String

The signature to verify, in hexadecimal.

Request

curl --location --request POST 'https://xrp.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "channel_verify",
"params": [{"amount": 1000000, "channel_id": "5DB01B7FFED6B67E6B0414DED11E051D2EE2B7619CE0EAA6286D67A3A4D5BDB3", "public_key": "aB44YfzW24VDEJQ2UuLPV2PvqcPCSoLnL7y5M1EzhdW4LnK5xMS3", "signature": "304402204EF0AFB78AC23ED1C472E74F4299C0C21F1B21D07EFC0A3838A420F76D783A400220154FB11B6F54320666E4C36CA7F686C16A3A0456800BBC43746F34AF50290064"}],
"id": "getblock.io"}'


Response

{
    "result": {
        "error": "channelAmtMalformed",
        "error_code": 46,
        "error_message": "Payment channel amount is malformed.",
        "request": {
            "amount": 1000000,
            "channel_id": "5DB01B7FFED6B67E6B0414DED11E051D2EE2B7619CE0EAA6286D67A3A4D5BDB3",
            "command": "channel_verify",
            "public_key": "aB44YfzW24VDEJQ2UuLPV2PvqcPCSoLnL7y5M1EzhdW4LnK5xMS3",
            "signature": "304402204EF0AFB78AC23ED1C472E74F4299C0C21F1B21D07EFC0A3838A420F76D783A400220154FB11B6F54320666E4C36CA7F686C16A3A0456800BBC43746F34AF50290064"
        },
        "status": "error"
    }
}
GetBlock.io

Get access to 40+ blockchain nodes right now! GetBlock provides a fast and reliable connection for the most popular cryptocurrencies` nodes.

Subscribe

Email is invalid

2019 - 2021 GetBlock