eth_sendRawTransaction

网络: Base · 主网 · Chain ID 8453(0x2105)

计为 1 个 Request。 计费规则见 Request Counting。

将离线签名好的交易广播到网络。你需要先在本地完成签名。

参数

  1. DATA — 已签名交易数据(十六进制编码)。

返回

DATA(32 字节)— 交易哈希;若交易暂不可用,也可能返回零哈希。

请求

{ "jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf86c808504a817c80082520894..."], "id": 1 }

该方法必须使用私有端点(API Key),公开端点不可用。

响应

{ "jsonrpc": "2.0", "id": 1, "result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331" }

代码示例

curl -X POST https://base-rpc.blockreq.com/v1/rpc/public \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0xf86c808504a817c80082520894..."],"id":1}'

在线试用