Skip to main content

sendTransaction RPC Method

Submit a transaction to the network.

Updated on
Feb 21, 2024

sendTransaction RPC Method

Parameters

transaction
string
REQUIRED
The signed transaction to broadcast (serialized in base64)

Returns

result
object
A result object with the following field:
hash
string
The transaction hash encoded in hex string
status
string
The current status of the transaction by hash. It can be one of PENDING, DUPLICATE, TRY_AGAIN_LATER and ERROR
latestLedger
string
The latest ledger known at the time it handles the transaction request
latestLedgerCloseTime
string
he UNIX timestamp of the latest ledger close time known at the time it handles the transaction
errorResultXdr
string
In case of a transaction error, this field will contain a base64-encoded string of the raw TransactionResult XDR struct, providing specifics on why the transaction was rejected by stellar-core
Request
1
curl --location 'https://docs-demo.stellar-mainnet.quiknode.pro/' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"jsonrpc": "2.0",
5
"id": 8675309,
6
"method": "sendTransaction",
7
"params": {
8
"transaction": "YOUR_SIGNED_TRANSACTION"
9
}
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free