sendTransaction

Submit a real transaction to the Stellar network. This is the only way to make changes "on-chain".

This method will use 10 Compute Units.


Reference: Here

Parameters

  • transaction (string)(required) The signed transaction to broadcast (serialized in base64).

Returns

  • hash string - The transaction hash (in an hex-encoded string).

  • status string - The current status of the transaction by hash.

    • Allowed values:PENDINGDUPLICATETRY_AGAIN_LATERERROR

  • latestLedger string - The latest ledger known to Soroban-RPC at the time it handled the sendTransaction() request.

  • latestLedgerCloseTime string - The unix timestamp of the close time of the latest ledger known to Soroban-RPC at the time it handled the sendTransaction() request.

  • errorResultXdr string (optional) - If the transaction status is ERROR, this will be a base64 encoded string of the raw TransactionResult XDR struct containing details on why stellar-core rejected the transaction.

// Result
{
  "jsonrpc": "2.0",
  "id": 8675309,
  "result": {
    "hash": "a01441a4d0b80769d2c2d97dcd28d13e9036065da14ea83731424d77efc50894",
    "status": "PENDING",
    "latestLedger": "45075181",
    "latestLedgerCloseTime": "1677115742"
  }
}

Last updated

Was this helpful?