eth_sendRawTransaction
Submits a pre-signed transaction for broadcast to the Binance Smart Chain network.

Example

Command Shell
Bash
1
curl https://bsc-<network>.web3api.com/v1/YOUR-API-KEY
2
-X POST
3
-H "Content-Type: application/json"
4
-d "{\"jsonrpc\":\"2.0\",\"method\":\"eth_sendRawTransaction\",\"params\":[\"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675\"],\"id\":1}"
Copied!
1
curl -X POST 'https://bsc-<network>.web3api.com/v1/YOUR-API-KEY' \
2
-H 'Content-Type: application/json' \
3
--data-raw '{"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"],"id":1}'
Copied!
Request Parameters
Response
  1. 1.
    TRANSACTION DATA - The raw signed transaction data.
Result Fields
TRANSACTION HASH - A transaction hash, or the zero hash if the transaction is not yet available.
Body
1
{
2
"jsonrpc":"2.0",
3
"id":1,
4
"result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
5
}
Copied!
Last modified 6mo ago
Copy link