Stellar - JSON-RPC

JSON-RPC methods supported on Stellar Mainnet and Stellar Testnet through Tatum RPC Gateway, with base URLs and an example request.

Call Stellar JSON-RPC methods through Tatum RPC Gateway. Send an HTTP POST request with a JSON-RPC 2.0 body to the network's base URL, with your API key in the x-api-key header. See Authentication.

Base URLs

NetworkBase URL
Stellar Mainnethttps://stellar-mainnet-soroban.gateway.tatum.io
Stellar Testnethttps://stellar-testnet-soroban.gateway.tatum.io

Example request

curl 'https://stellar-mainnet-soroban.gateway.tatum.io' \
  --header 'content-type: application/json' \
  --header 'x-api-key: {YOUR_API_KEY}' \
  --data '{"jsonrpc":"2.0","method":"getHealth","params":{},"id":1}'

Methods

12 methods. Parameters and responses are described in the Stellar RPC API reference; each method name links to its page there.

MethodDescription
getEventsReturns contract events emitted in a range of ledgers.
getFeeStatsReturns inclusion fee statistics for Soroban and classic transactions.
getHealthReturns the health status of the RPC node.
getLatestLedgerReturns the latest ledger known to the node.
getLedgerEntriesReturns the ledger entries for the given keys.
getLedgersReturns a list of ledgers starting from a given sequence.
getNetworkReturns the network passphrase and protocol version.
getTransactionReturns a transaction by hash.
getTransactionsReturns a list of transactions starting from a given ledger.
getVersionInfoReturns the version of the RPC node and its Captive Core.
sendTransactionSubmits a signed transaction without waiting for it to complete.
simulateTransactionSimulates a transaction and returns its resource usage, fee and footprint.

The gateway lists its supported methods at runtime:

Method unavailable?

If you need a method we don't support yet, contact support.