eth
eth_sendRawTransaction
Submits a signed transaction to the network for broadcast and inclusion in a block. The transaction must be fully signed before submission.
Submits a signed transaction to the network for broadcast and inclusion in a block. The transaction must be fully signed before submission.
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | The signed transaction data as a hex-encoded string with 0x prefix. |
Returns
string -- The transaction hash (32 bytes, hex-encoded), or an error if the transaction is rejected.
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_sendRawTransaction",
"params": ["0xf86c0a8502540be400825208940000000000000000000000000000000000000000880de0b6b3a764000080820171a0...signed_data..."],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}
TRY IT
Notes
- The transaction must be signed with a valid private key for the sender account. Use libraries like ethers.js, web3.js, or viem to construct and sign transactions.
- The transaction must be signed with chain ID 369 (
0x171) for PulseChain mainnet. Transactions signed for other chains will be rejected. - Common error responses:
"nonce too low"-- The nonce has already been used. Fetch the current nonce witheth_getTransactionCount."insufficient funds"-- The sender does not have enough PLS to cover the value plus gas costs."already known"-- The transaction has already been submitted."replacement transaction underpriced"-- A transaction with the same nonce exists in the mempool with a higher gas price.
- After submission, use
eth_getTransactionReceiptto poll for confirmation. The receipt will benulluntil the transaction is mined. - This is a write operation. The example
paramsvalue above is a placeholder and will not produce a valid transaction. You must sign a real transaction to use this method. - For read-only operations, use
eth_callinstead.
eth_getProof
Returns the Merkle proof for an account and optionally for specific storage slots. This allows trustless verification that an account's balance, nonce, code, or storage values are included in the stat
eth_getBlockTransactionCountByHash
Returns the number of transactions in a block identified by block hash.
