diff --git a/src/debug/getters.yaml b/src/debug/getters.yaml index c81938159..c6f62ab61 100644 --- a/src/debug/getters.yaml +++ b/src/debug/getters.yaml @@ -5,6 +5,9 @@ required: true schema: $ref: '#/components/schemas/BlockNumberOrTag' + errors: + - code: 4444 + message: Pruned history unavailable result: name: Header RLP schema: @@ -24,6 +27,9 @@ required: true schema: $ref: '#/components/schemas/BlockNumberOrTag' + errors: + - code: 4444 + message: Pruned history unavailable result: name: Block RLP schema: @@ -43,6 +49,9 @@ required: true schema: $ref: '#/components/schemas/hash32' + errors: + - code: 4444 + message: Pruned history unavailable result: name: EIP-2718 binary-encoded transaction schema: @@ -62,6 +71,9 @@ required: true schema: $ref: '#/components/schemas/BlockNumberOrTag' + errors: + - code: 4444 + message: Pruned history unavailable result: name: Receipts schema: diff --git a/src/eth/block.yaml b/src/eth/block.yaml index 4013e7ce8..debdae088 100644 --- a/src/eth/block.yaml +++ b/src/eth/block.yaml @@ -16,6 +16,9 @@ oneOf: - $ref: '#/components/schemas/notFound' - $ref: '#/components/schemas/Block' + errors: + - code: 4444 + message: Pruned history unavailable examples: - name: eth_getBlockByHash example params: @@ -75,6 +78,9 @@ oneOf: - $ref: '#/components/schemas/notFound' - $ref: '#/components/schemas/Block' + errors: + - code: 4444 + message: Pruned history unavailable examples: - name: eth_getBlockByNumber example params: @@ -129,6 +135,9 @@ - $ref: '#/components/schemas/notFound' - title: Transaction count $ref: '#/components/schemas/uint' + errors: + - code: 4444 + message: Pruned history unavailable examples: - name: eth_getBlockTransactionCountByHash example params: @@ -150,6 +159,9 @@ - $ref: '#/components/schemas/notFound' - title: Transaction count $ref: '#/components/schemas/uint' + errors: + - code: 4444 + message: Pruned history unavailable examples: - name: eth_getBlockTransactionCountByNumber example params: @@ -171,6 +183,9 @@ - $ref: '#/components/schemas/notFound' - title: Uncle count $ref: '#/components/schemas/uint' + errors: + - code: 4444 + message: Pruned history unavailable examples: - name: eth_getUncleCountByBlockHash example params: @@ -192,6 +207,9 @@ - $ref: '#/components/schemas/notFound' - title: Uncle count $ref: '#/components/schemas/uint' + errors: + - code: 4444 + message: Pruned history unavailable examples: - name: eth_getUncleCountByBlockNumber example params: @@ -216,6 +234,9 @@ type: array items: $ref: '#/components/schemas/ReceiptInfo' + errors: + - code: 4444 + message: Pruned history unavailable examples: - name: eth_getBlockReceipts example params: diff --git a/src/eth/filter.yaml b/src/eth/filter.yaml index 962d08609..39e5788a0 100644 --- a/src/eth/filter.yaml +++ b/src/eth/filter.yaml @@ -155,6 +155,9 @@ schema: $ref: '#/components/schemas/Filter' required: true + errors: + - code: 4444 + message: Pruned history unavailable result: name: Log objects schema: diff --git a/src/eth/transaction.yaml b/src/eth/transaction.yaml index 706de7c95..bbef8c8e3 100644 --- a/src/eth/transaction.yaml +++ b/src/eth/transaction.yaml @@ -51,6 +51,9 @@ oneOf: - $ref: '#/components/schemas/notFound' - $ref: '#/components/schemas/TransactionInfo' + errors: + - code: 4444 + message: Pruned history unavailable examples: - name: eth_getTransactionByBlockHashAndIndex example params: @@ -93,6 +96,9 @@ oneOf: - $ref: '#/components/schemas/notFound' - $ref: '#/components/schemas/TransactionInfo' + errors: + - code: 4444 + message: Pruned history unavailable examples: - name: eth_getTransactionByBlockNumberAndIndex example params: @@ -131,6 +137,9 @@ oneOf: - $ref: '#/components/schemas/notFound' - $ref: '#/components/schemas/ReceiptInfo' + errors: + - code: 4444 + message: Pruned history unavailable examples: - name: eth_getTransactionReceipt example params: