本页面使用机器翻译自英语,可能包含错误或不清楚的语言。如需最准确的信息,请参阅英文原文。由于更新频繁,部分内容可能与英文原文有出入。请加入我们在 Crowdin 上的努力,帮助我们改进本页面的翻译。 (Crowdin translation page, Contributing guide)
[Transaction] eth_sendRawTransaction
Creates a new message call transaction or a contract creation for signed transactions.
JSONRPC: eth_sendRawTransaction
Request
- application/json
Body
params DATA[]
The signed transaction data.
Responses
- 200
Return the transaction hash or the zero hash if the transaction is not yet available.
- application/json
- Schema
- Example (from schema)
Schema
error
object
result 32-byte DATA
The transaction hash or the zero hash if the transaction is not yet available.
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}
- curl
- python
- nodejs
- java
- Curl
curl -X 'POST' \
'https://public-en-kairos.node.kaia.io' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"method": "eth_sendRawTransaction",
"id": 1,
"jsonrpc": "2.0",
"params": [ "0xf86d03850ba43b7400829999948c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee87038d7ea4c68000808207f5a02c39a457ec76803901627392cbfb2107793bf4326e1f1100dc58d8a1216559bca07ce3a3517fce359c1fb6f5b1c1564dd9bb42d0d70a20ae9f4af95d46050ce55e" ]
}'
- CURL
ResponseClear