curl --request POST \
--url https://monad-testnet.core.chainstack.com/9c5b265f20b3ea5df4f54f70eb74b800/ \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_sendRawTransaction",
"params": [
"0x"
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}curl --request POST \
--url https://monad-testnet.core.chainstack.com/9c5b265f20b3ea5df4f54f70eb74b800/ \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_sendRawTransaction",
"params": [
"0x"
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}data — the signed transaction data (typically signed with a library like ethers.js or web3.py).result — the 32-byte transaction hash, or the zero hash if the transaction is not yet available.eth_sendRawTransaction code examplesconst { ethers } = require("ethers");
const provider = new ethers.JsonRpcProvider("CHAINSTACK_NODE_URL");
const wallet = new ethers.Wallet("PRIVATE_KEY", provider);
async function sendTransaction() {
const tx = await wallet.sendTransaction({
to: "0x...", // Recipient address
value: ethers.parseEther("0.01")
});
console.log(`Transaction hash: ${tx.hash}`);
await tx.wait();
console.log("Transaction confirmed");
}
sendTransaction();
eth_sendRawTransaction is sending MON transfers or interacting with smart contracts after signing transactions offline or in a secure environment.Was this page helpful?