Aptos
/v1/blocks/by_version/{version}40 crédits
Get block by ledger version
Paramètres
| Nom | Type | Description |
|---|---|---|
| version | integer | Path. Ledger version to find the containing block for. |
| with_transactions | boolean | Query. If true, include the transactions of the block. Defaults to false. (facultatif) |
Valeur renvoyée
Type
object
Block with block_height, block_hash, block_timestamp, first_version, last_version and, when requested, transactions. Returns 410 if the block is pruned.
Exemples de code
curl 'https://holy-burned-sky-apt-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/v1/blocks/by_version/{version}'