TriportRPC

getTransactions

Stellar / https://triport.io/rpc/stellar

Minimum tier: Pro

Stellar method guide

Last updated:

Returns a cursor-paginated list of retained transactions, including status and XDR envelope/result data when records are present.

Use it for transaction-level ingestion. Use getEvents when only emitted contract events are needed, or Horizon for HAL resources.

Both measured Soroban nodes retained 120,960 ledgers. The page limit is 200.

Parameters

getTransactions parameters
NameTypeRequiredDescription
startLedgernumberNoLedger sequence number to start fetching responses from (inclusive). This method will return an error if `startLedger` is less than the oldest ledger stored in this node, or greater than the latest ledger seen by this node. If a cursor is included in the request, `startLedger` must be omitted.
paginationobjectNoPagination in stellar-rpc is similar to pagination in Horizon. See [Pagination](https://developers.stellar.org/docs/data/rpc/api-reference/structure/pagination).
xdrFormatstringNoLets the user choose the format in which the response should be returned - either as unpacked JSON or as base64-encoded XDR strings. Note that you should not rely on any schema for the JSON, as it will change when the underlying XDR changes.

Returns

getTransactions return value
FieldType
getTransactionsResultobject

Examples

curl https://triport.io/rpc/stellar \
  -X POST -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <api-key>' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getTransactions","params":["<startLedger>","<pagination>","<xdrFormat>"]}'
const res = await fetch("https://triport.io/rpc/stellar", {
  method: "POST",
  headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
  body: JSON.stringify({
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getTransactions",
  "params": [
    "<startLedger>",
    "<pagination>",
    "<xdrFormat>"
  ]
}),
});
const data = await res.json();
import requests
resp = requests.post(
    "https://triport.io/rpc/stellar",
    headers={"Authorization": "Bearer <api-key>"},
    json={"jsonrpc":"2.0","id":1,"method":"getTransactions","params":["<startLedger>","<pagination>","<xdrFormat>"]},
)
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Chain: Stellar.
  3. Clusters: mainnet.
  4. Credit cost: 5 per call.

FAQ

What does getTransactions do?
Returns a list of transactions with their details through Stellar Soroban JSON-RPC.
How many credits does getTransactions cost?
getTransactions costs 5 credit(s) per call on Triport by default.
Is getTransactions available over WebSocket?
getTransactions is an HTTP JSON-RPC method.