xrp

XRP (XRP)

Method: POST submit

dropdown

POST submit

Method not allowed

The submit method applies a transaction and sends it to the network to be confirmed and included in future ledgers.

This command has two modes

1) Submit-only mode takes a signed, serialized transaction as a binary blob, and submits it to the network as-is.

Since signed transaction objects are immutable, no part of the transaction can be modified or automatically filled in after submission.

2) Sign-and-submit mode takes a JSON-formatted Transaction object, completes and signs the transaction in the same manner as the sign method, and then submits the signed transaction.

We recommend only using this mode for testing and development.

Parameters

tx_blob - String

Hex representation of the signed transaction to submit. This can be a multi-signed transaction.

fail_hard - Boolean

(Optional, defaults to false) If true, and the transaction fails locally, do not retry or relay the transaction to other servers

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": "submit",
"params": [{}],
"id": "getblock.io"}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}