eth_sendTransaction
Important: Dwellir's shared Polygon endpoints do not manage user private keys. JSON-RPC nodes cannot unlock your account, so
eth_sendTransaction
calls will fail. Sign transactions client-side and broadcast them witheth_sendRawTransaction
.
Why this method is disabled on shared nodes
eth_sendTransaction
requires the node to hold and unlock thefrom
account's private key.- Managed infrastructure providers disable it for security reasons rather than storing customer keys on shared servers (for example, Infura explicitly blocks the method on shared endpoints).
Recommended workflow
- Build the raw transaction locally with your wallet or SDK.
- Sign the payload client-side (hardware wallet, custodial service, or library).
- Submit the signed hex string with
eth_sendRawTransaction
.
Example response from the shared endpoint
curl -s -X POST https://api-polygon-mainnet-full.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{"from":"0x0000000000000000000000000000000000000000"}],"id":1}'
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"unknown account"}}
Need help? Contact our support team or use the dedicated eth_sendRawTransaction
guide.