Get events from time to time
Get events from time to time
Query Parameters
from_time string required
The start time in seconds or a time string ('YYYY-MM-DD hh:mm:ss')
to_time string required
The end time in seconds or a time string ('YYYY-MM-DD hh:mm:ss')
cursor string
The cursor returned in the previous response (used for getting the next page).
limit number
Number of items returned, default: 20
Responses
- 200
200 Successful
application/json
Schema
Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
cursor string
The cursor returned in the previous response (used for getting the next page)
page number required
Page of results
limit number required
Limit of results
total_items number required
Total returned result items
data object[] required
Array of documents
block_height number required
blockHeight
block_time date-time required
blockTime
timestamp number required
timestamp
transaction_version number required
txVersion
transaction_hash string required
txHash
transaction_type string required
txType
creation_number number required
creationNumber
account_address string required
accountAddress
sequence_number number required
sequenceNumber
type string required
type
event_index number required
eventIndex
amount number nullable required
amount
module_name string nullable required
moduleName
struct_name string nullable required
structName
data object required
data
block_hash string required
block_hash
success boolean required
success
vm_status string required
vm_status
[
{
"cursor": "string",
"page": 0,
"limit": 0,
"total_items": 0,
"data": [
{
"block_height": 48569766,
"block_time": "2023-06-13 18:17:09.819",
"timestamp": 1686655029819390,
"transaction_version": 125033617,
"transaction_hash": "0xdf4b0d8b621cd39e3d3dc4e24f82f0ad045014653aa0ccee9256810e1db3c8ef",
"transaction_type": "block_metadata_transaction",
"creation_number": 3,
"account_address": "0xb723f7fb05992065f97b0562bf5a6eac95f6044134efd2ee2bf95607eb1942c7",
"sequence_number": 17,
"type": "0x1::coin::WithdrawEvent",
"event_index": 1,
"amount": 4441891,
"module_name": "0x6173736574",
"struct_name": "0x6173736574",
"data": "{\"amount\": \"11385\"}",
"block_hash": "0xa9f9ea4852444a91a1d259175f4e51a9c13715391dbf91e16992c130eb31f3c5",
"success": true,
"vm_status": "Executed successfully"
}
]
}
]
Loading...