REST API
/query/receipts/list
Cardinal (Game Shard)
Building Your Game Shard
- Project Structure
- World (main.go)
- Component
- System
- Message
- Query
- Cardinal Query Language (CQL)
- EVM+ Message and Query
- Persona (Game Account)
- Configurations (world.toml)
Inter-Shard Communication
REST API
/query/receipts/list
Get transaction receipts from Cardinal
POST
/
query
/
receipts
/
list
curl --request POST \
--url http://localhost:4040/query/receipts/list \
--header 'Content-Type: application/json' \
--data '{
"startTick": 123
}'
{
"startTick": 123,
"endTick": 123,
"receipts": [
{
"txHash": "<string>",
"tick": 123,
"result": {},
"errors": [
"<string>"
]
}
]
}
Body
application/json
Response
200
application/json
Successful response
The response is of type object
.
curl --request POST \
--url http://localhost:4040/query/receipts/list \
--header 'Content-Type: application/json' \
--data '{
"startTick": 123
}'
{
"startTick": 123,
"endTick": 123,
"receipts": [
{
"txHash": "<string>",
"tick": 123,
"result": {},
"errors": [
"<string>"
]
}
]
}