Returns all stored receipts.
GET/api/core/v2/receipts
Returns all stored receipts.
Request
Responses
- 200
- 400
- 403
- 500
- 503
Successful operation.
- application/json
- Schema
- Example (from schema)
- default
Schema
- Array [
- Array [
- Ed25519Address
- ]
- ]
receipts ReceiptTuple[]required
receipt ReceiptPayloadrequired
Contains a receipt and the index of the milestone which contained the receipt.
Type identifier of a receipt payload (3).
funds MigratedFundsEntry[]required
address objectrequired
Set to value 0 to denote an Ed25519 Address.
The hex-encoded, 0x prefixed BLAKE2b-256 hash of the Ed25519 public key
transaction TreasuryTransactionPayloadrequired
Set to value 4 to denote a Treasury Payload.
input TreasuryInput
Set to value 1 to denote a TreasuryInput.
Hex-encoded with 0x prefix.
output TreasuryOutput
Set to value 2 to denote a TreasuryOutput.
Amount of IOTA tokens in the treasury. Plain string encoded number.
{
"receipts": [
{
"receipt": {
"type": 0,
"migratedAt": 0,
"final": true,
"funds": [
{
"tailTransactionHash": "string",
"deposit": 0
}
],
"transaction": {
"type": 0,
"input": {
"type": 0,
"milestoneId": "string"
},
"output": {
"type": 0,
"amount": "string"
}
}
},
"milestoneIndex": 0
}
]
}
{
"receipts": [
{
"migratedAt": 1000,
"final": false,
"funds": [
{
"tailTransactionHash": "0xe0ce1933a900d02e0a43e2ba4e922d1a706a36a117ce1eb9ad0a74d39ee722c41b00cd227232efd76f5997e91bf8000000",
"address": {
"type": 0,
"pubKeyHash": "0x5eec99d6ee4ba21aa536c3364bbf2b587cb98a7f2565b75d948b10083e2143f8"
},
"deposit": "1702000000"
}
],
"transaction": {
"input": {
"type": 1,
"milestoneId": "0x733ed2810f2333e9d6cd702c7d5c8264cd9f1ae454b61e75cf702c451f68611d"
},
"output": {
"type": 2,
"amount": "1702000000"
}
}
}
]
}
Unsuccessful operation: indicates that the provided data is invalid.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 400,
"message": "invalid data provided"
}
}
Unsuccessful operation: indicates that the endpoint is not available for public use.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 403,
"message": "not available for public use"
}
}
Unsuccessful operation: indicates that an unexpected, internal server error happened which prevented the node from fulfilling the request.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 500,
"message": "internal server error"
}
}
Unsuccessful operation: indicates that the node is not synced.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 503,
"message": "service unavailable"
}
}