Aptos
Web3 Cloud API (1.0.0)
Download OpenAPI specification:Download
GetBlock
Get block.
Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json
| block_height required | integer <int64> slot number. |
Responses
Request samples
- Payload
Content type
application/json
{- "block_height": 17805285
}Response samples
- 200
- 500
Content type
application/json
{- "block": {
- "block_hash": "string",
- "block_height": 0,
- "block_timestamp": "string",
- "first_version": "string",
- "last_version": "string"
}
}GetTransaction
Get transaction.
Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json
| transaction_hash required | string Transaction hash. |
Responses
Request samples
- Payload
Content type
application/json
{- "transaction_hash": "UZJSb3AnzKtYmg1nVHt7kK8yBm3XFvDtdRLybd7uUUA1RFs3V7uprdVj9nug6mNAtBJeYewoDw3QK6eXA5k1Rhi"
}Response samples
- 200
- 500
Content type
application/json
{- "transaction": {
- "transaction_hash": "string",
- "block_height": 0,
- "block_hash": "string",
- "transfers": [
- {
- "from": "string",
- "to": "string",
- "value": "string"
}
], - "fee": "string",
- "block_timestamp": "string",
- "version": "string",
- "state_change_hash": "string",
- "event_root_hash": "string",
- "state_checkpoint_hash": "string",
- "gas_used": "string",
- "vm_status": "string",
- "accumulator_root_hash": "string",
- "changes": [
- { }
], - "sender": "string",
- "sequence_number": "string",
- "max_gas_amount": "string",
- "gas_unit_price": "string",
- "epoch": "string",
- "round": "string",
- "previous_block_votes_bitvec": { },
- "proposer": "string",
- "failed_proposer_indices": { },
- "expiration_timestamp_secs": "string",
- "payload": { },
- "signature": { },
- "events": [
- { }
], - "timestamp": "string",
- "type": "string",
- "success": true
}
}ListTransactions
List transactions.
Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json
| transaction_hashes | Array of strings Transaction hashes. |
Responses
Request samples
- Payload
Content type
application/json
{- "transaction_hashes": [
- "UZJSb3AnzKtYmg1nVHt7kK8yBm3XFvDtdRLybd7uUUA1RFs3V7uprdVj9nug6mNAtBJeYewoDw3QK6eXA5k1Rhi"
]
}Response samples
- 200
- 500
Content type
application/json
{- "transactions": [
- {
- "transaction_hash": "string",
- "block_height": 0,
- "block_hash": "string",
- "transfers": [
- {
- "from": "string",
- "to": "string",
- "value": "string"
}
], - "fee": "string",
- "block_timestamp": "string",
- "version": "string",
- "state_change_hash": "string",
- "event_root_hash": "string",
- "state_checkpoint_hash": "string",
- "gas_used": "string",
- "vm_status": "string",
- "accumulator_root_hash": "string",
- "changes": [
- { }
], - "sender": "string",
- "sequence_number": "string",
- "max_gas_amount": "string",
- "gas_unit_price": "string",
- "epoch": "string",
- "round": "string",
- "previous_block_votes_bitvec": { },
- "proposer": "string",
- "failed_proposer_indices": { },
- "expiration_timestamp_secs": "string",
- "payload": { },
- "signature": { },
- "events": [
- { }
], - "timestamp": "string",
- "type": "string",
- "success": true
}
]
}