WalletD developers
Transactions

Page transactions newest-first with resolved legs

Pages the ledger's transactions newest-first with their legs already resolved, optionally filtered by transaction type.

GET/v1/ledgers/{ledgerId}/transactions

Pages the ledger's transactions newest-first with their legs already resolved, optionally filtered by transaction type. The cursor is the last transaction id seen. limit is clamped to the contract maximum, so a caller asking for more gets the maximum rather than an error or an unbounded scan.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

ledgerId*string
Formatuuid

Query Parameters

type?string
cursor?string
Formatuuid
limit?integer
Rangevalue <= 500
Default50

Response Body

application/json

application/problem+json

curl -X GET "https://example.com/v1/ledgers/497f6eca-6276-4993-bfeb-53cbbbba6f08/transactions"
[  {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "type": "string",    "status": "string",    "reference_id": "97c1ff22-6e4f-4821-b1d3-5236781d37b8",    "metadata": {      "property1": "string",      "property2": "string"    },    "exchange_id": "6e73ee7b-fdf3-44c2-947d-260c3ee72506",    "reverses_txn_id": "5b70dad8-f43f-45eb-afbd-821f57facc93",    "reversed_by": "69b6d93a-63e5-4842-b5ef-0ace8f62b2a4",    "legs": [      {        "owner_type": "string",        "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",        "purpose": "string",        "direction": "credit",        "amount": 0,        "commodity": "string"      }    ],    "effective_at": "2019-08-24T14:15:22Z",    "created_at": "2019-08-24T14:15:22Z"  }]