2. Soroban TXs
2.1 GET /txs/by-ledger
Query params
from(i32, optional) – default 0to(i32, optional) – default i32::MAXlimit(i64, optional) – default 100, max 1000offset(i64, optional) – default 0cursor(hex string, optional) – tx field of last row from previous page; when set, offset is ignored
Example
curl -X GET \
"$BASE/txs/by-ledger?from=500000&to=500500&limit=100&offset=0" \
-H "Authorization: $AUTH"2.2 GET /txs/by-contract/{contract_id}
Two behaviors.
2.2.a just contract
curl -X GET \
"$BASE/txs/by-contract/CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA?limit=100&offset=0" \
-H "Authorization: $AUTH"2.2.b contract + ledger
Precedence:
if
fromorto→ ledger branchelse → base
2.3 GET /txs/by-contracts
Query params
contracts=ID1,ID2,...(required) – comma-separated contract IDslimit(i64, optional) – default 100, max 1000offset(i64, optional) – default 0cursor(hex string, optional) – tx field of last row from previous page; when set, offset is ignored
Example
2.4 GET /txs/by-ledger/contracts
Multiple contracts + ledger filter
Query params
contracts=ID1,ID2,...(required) – comma-separated contract IDsfrom(i32, optional) – default 0to(i32, optional) – default i32::MAXlimit(i64, optional) – default 100, max 1000offset(i64, optional) – default 0cursor(hex string, optional) – tx field of last row from previous page; when set, offset is ignored
Example
2.5 GET /txs/by-hash/{tx_hex}
Last updated