sei_traceBlockByNumberExcludeTraceFail - SEI

Example code for the sei_traceBlockByNumberExcludeTraceFail JSON-RPC method. Complete guide on how to use sei_traceBlockByNumberExcludeTraceFail JSON-RPC in GetBlock Web3 documentation.

This method traces all transactions in a block on Sei by block number, excluding transactions that fail tracing. Provides cleaner debugging output by filtering out failed traces.

Parameters

Parameter
Type
Description

blockNumber

string

Block number in hex, or 'latest', 'earliest', 'pending', 'safe', 'finalized'

options

object

Tracing options including 'tracer', 'timeout', etc. (optional)

Request

cURL
curl --location 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data '{
    "jsonrpc": "2.0",
    "method": "sei_traceBlockByNumberExcludeTraceFail",
    "params": ["latest", {"tracer": "callTracer"}],
    "id": "getblock.io"
}'

Response

response.json
{
    "jsonrpc": "2.0",
    "id": "getblock.io",
    "result": [
        {
            "result": {
                "type": "CALL",
                "from": "0x...",
                "to": "0x...",
                "gasUsed": "0x5208"
            }
        }
    ]
}

Response Parameters

Field
Type
Description

result

array

Array of trace results for successfully traced transactions only

Use Case

The sei_traceBlockByNumberExcludeTraceFail method is essential for:

  • Blockchain developers building applications on Sei

  • Wallet applications requiring network data

  • Analytics platforms tracking Sei network activity

  • DeFi protocols integrating with Sei's parallelized EVM

Error Handling

Common errors when using this method:

Error Code
Message
Description

-32700

Parse error

Invalid JSON

-32600

Invalid Request

JSON is not a valid request object

-32601

Method not found

Method does not exist

-32602

Invalid params

Invalid method parameters

-32603

Internal error

Internal JSON-RPC error

-32000

Invalid input

Generic input error

-32500

Cross-VM error

Error in cross-VM operation (Sei-specific)

Web3 Integration

Last updated

Was this helpful?