Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,8 @@
"result": {
"name": "result",
"schema": {
"title": "Transaction receipt with block info",
"$ref": "#/components/schemas/TXN_RECEIPT_WITH_BLOCK_INFO"
"title": "Transaction receipt with info",
"$ref": "#/components/schemas/TXN_RECEIPT_WITH_INFO"
}
},
"errors": [
Expand Down Expand Up @@ -1104,13 +1104,19 @@
"description": "The number of the block in which the event was emitted",
"$ref": "#/components/schemas/BLOCK_NUMBER"
},
"transaction_index": {
"title": "Transaction index",
"description": "Index of the transaction within the block which emitted this event",
"type": "integer",
"minimum": 0
},
"transaction_hash": {
"title": "Transaction hash",
"description": "The transaction that emitted the event",
"$ref": "#/components/schemas/TXN_HASH"
}
},
"required": ["transaction_hash"]
"required": ["transaction_hash", "transaction_index"]
}
]
},
Expand Down Expand Up @@ -3004,8 +3010,8 @@
}
]
},
"TXN_RECEIPT_WITH_BLOCK_INFO": {
"title": "Transaction receipt with block info",
"TXN_RECEIPT_WITH_INFO": {
"title": "Transaction receipt with info",
"allOf": [
{
"title": "Transaction receipt",
Expand All @@ -3023,8 +3029,15 @@
"title": "Block number",
"$ref": "#/components/schemas/BLOCK_NUMBER",
"description": "If this field is missing, it means the receipt belongs to the pre-confirmed block"
}
}
},
"transaction_index": {
"title": "Transaction index",
"description": "Index of the transaction corresponding to this receipt within the block",
"type": "integer",
"minimum": 0
},
},
"required": ["transaction_index"]
}
]
},
Expand Down