This endpoint returns all payment-related operations in a specific ledger. Operation types that can be returned by this endpoint include: create_account, payment, path_payment, and account_merge.
The sequence number of a specific ledger.
0
Success
const response = await fetch('https://xlm.nownodes.io/ledgers/{sequence}/payments', { method: 'GET', headers: {}, }); const data = await response.json();
{ "_links": { "self": { "href": "text", "templated": false }, "next": { "href": "text", "templated": false }, "prev": { "href": "text", "templated": false } }, "_embedded": { "records": [ { "_links": { "self": { "href": "text", "templated": false }, "transaction": { "href": "text", "templated": false }, "effects": { "href": "text", "templated": false }, "succeeds": { "href": "text", "templated": false }, "precedes": { "href": "text", "templated": false } }, "id": "text", "paging_token": "text", "transaction_successful": false, "source_account": "text", "type": "payment", "type_i": "text", "created_at": "text", "transaction_hash": "text", "asset_type": "text", "asset_code": "native", "asset_issuer": "text", "from": "text", "to": "text", "amount": "text" } ] } }