curl --request POST \
--url https://api.privy.io/v1/wallets/{wallet_id}/rpc \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'privy-app-id: <privy-app-id>' \
--data '{
"method": "eth_sendTransaction",
"caip2": "eip155:11155111",
"chain_type": "ethereum",
"sponsor": true,
"params": {
"transaction": {
"to": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"value": "0x2386F26FC10000",
}
}
}'
{
"method" : "eth_sendTransaction" ,
"data" : {
"hash" : "0xfc3a736ab2e34e13be2b0b11b39dbc0232a2e755a11aa5a9219890d3b2c6c7d8" ,
"caip2" : "eip155:11155111" ,
"transaction_id" : "y90vpg3bnkjxhw541c2zc6a9"
}
}
A successful response indicates that the transaction has been broadcasted to the network.
Transactions may get broadcasted but still fail to be confirmed by the network. To handle these
scenarios, see our guide on speeding up transactions .
privy-authorization-signature
Request authorization signature. If multiple signatures are required, they should be comma
separated.
Path Parameters
Body
Available options: eth_sendTransaction
The value to send in the transaction in wei as a hexadecimal string.
Available options: 0
, 1
, 2
Optional parameter to enable gas sponsorship for this transaction. Learn
more.
Available options: ethereum
Returns
Available options: eth_sendTransaction