JSON-RPC
eth_sendRawTransaction
eth_sendRawTransaction of BlockRazor RPC is compatible with native JSON-RPC methods and requires no additional modifications. If you need to modify parameters such as hint, refund address and revert protection, you can configure the dedicated RPC in the portal
Request parameters
| Parameters | Mandatory | Format | Example | Remark |
|---|---|---|---|---|
| - | Mandatory | bytes | "0xd46e……445675" | raw tx |
Request Example
curl -X POST -H "Content-Type: application/json" --data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_sendRawTransaction",
"params": [
"0xd46e……445675"
]
}' https://bsc.blockrazor.xyz
Response Example
normal
{
"id":1,
"jsonrpc": "2.0",
"result": "0xe670……527331"
}
abnormal
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32000,
"message": "rlp: element is larger than containing list"
}
}
eth_sendBundle
Bundle Submission is supported in BlockRazor RPC, please refer to Bundle
Other JSON-RPC Methods
BlockRazor RPC supports standard JSON-RPC method, you can refer to https://ethereum.org/zh/developers/docs/apis/json-rpc/#json-rpc-methods