Skip to main content

submit RPC Method

Applies a transaction and sends it to the network to be confirmed and included in future ledgers.

Updated on
Oct 4, 2023

submit RPC Method

Parameters

tx_blob
string
The transaction blob

Returns

result
object
An object which contains the following fields:
accepted
boolean
It indicates whether the transaction was accepted by the network
account_sequence_available
integer
The available sequence number for the account
account_sequence_next
integer
The next sequence number for the account
applied
boolean
It indicates whether the transaction was applied by the network
broadcast
boolean
It indicates whether the transaction was successfully broadcasted to the network
engine_result
string
The result code of the transaction execution engine
engine_result_code
integer
The numeric result code of the transaction execution engine
engine_result_message
string
A message providing additional details about the transaction result
kept
boolean
It indicates whether the transaction was successfully kept by the network
open_ledger_cost
string
The cost of the transaction in terms of the base fee for the open ledger
queued
boolean
It indicates whether the transaction was successfully queued by the network
tx_blob
string
The submitted transaction blob
tx_json
object
An object containing the details of the submitted transaction:
Account
string
The account from which the transaction is sent
Amount
object
An object providing details about the transaction amount:
currency
string
The currency code of the transaction amount
issuer
string
The issuer of the currency
value
string
The value of the transaction amount
Destination
string
The recipient of the transaction
Fee
string
The fee associated with the transaction
Flags
integer
The flags set for the transaction
Sequence
integer
The sequence number of the transaction
SigningPubKey
string
The public key used for signing the transaction
TransactionType
string
The type of the transaction
TxnSignature
string
The signature of the transaction
hash
string
The hash of the transaction
validated_ledger_index
integer
The index of the validated ledger where the transaction was included
status
string
The status of the submitted transaction
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 '{"method": "submit",
5
"params": [{
6
"tx_blob": "1200002280000000240000000361D4838D7EA4C6800000000000000000000000000055534400000000004B4E9C06F24296074F7BC48F92A97916C6DC5EA968400000000000000A732103AB40A0490F9B7ED8DF29D246BF2D6269820A0EE7742ACDD457BEA7C7D0931EDB74473045022100D184EB4AE5956FF600E7536EE459345C7BBCF097A84CC61A93B9AF7197EDB98702201CEA8009B7BEEBAA2AACC0359B41C427C1C5B550A4CA4B80CF2174AF2D6D5DCE81144B4E9C06F24296074F7BC48F92A97916C6DC5EA983143E9D4A2B8AA0780F682D136F7A56D6724EF53754"
7
}],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free