Pular para o conteúdo

A ledger is an accounting system, such as a blockchain, that is supported and tracked.

A ledger is defined by its parameters, which describe its protocol and configuration. For any supported protocol, multiple ledgers instances may be registered. This allows derivative ledgers, such as testnets, forks, or permissioned instances to be connected to Harmonize natively.

List ledgers

Requisição

Segurança
httpAuth
Consulta
limitinteger, (int32), [ 1 .. 100 ]

The number of entities to return.

startingAfterstring, non-empty

Entity id used to the determine beginning of query results.

sortBystring

Property name used to sort the query results.

Enum:"id""alias""metadata.createdAt""metadata.lastModifiedAt"
sortOrderstring

Sort order applied to the query results.

Enum:"ASC""DESC"
curl -i -X GET \
  'https://docs.ripple.com/_mock/pt-br/products/custody/v1.42/devbox/v1/ledgers?limit=1&startingAfter=string&sortBy=id&sortOrder=ASC' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Respostas

Corpoapplication/json
itemsArray of objectsobrigatório
countinteger, (int32)obrigatório
currentStartingAfterstring
nextStartingAfterstring
Resposta
{ "items": [ { … } ], "count": 0, "currentStartingAfter": "string", "nextStartingAfter": "string" }