POST
/
v1
/
wallets
/
{wallet_id}
/
rpc
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",
  "params": {
    "transaction": {
      "to": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
      "value": "0x2386F26FC10000",
    }
  }
}'
{
  "method": "eth_sendTransaction",
  "data": {
    "hash": "0xfc3a736ab2e34e13be2b0b11b39dbc0232a2e755a11aa5a9219890d3b2c6c7d8",
    "caip2": "eip155:11155111",
    "transaction_id": "y90vpg3bnkjxhw541c2zc6a9"
  }
}
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",
  "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.

Headers

privy-app-id
string
required
ID of your Privy app.
privy-authorization-signature
string
Request authorization signature. If multiple signatures are required, they should be comma separated.

Path Parameters

wallet_id
string
required
ID of the wallet to get.

Body

method
string
required
Available options: eth_sendTransaction
caip2
string
required
params
object
required
address
string
chain_type
string
Available options: ethereum

Returns

method
enum<string>
required
Available options: eth_sendTransaction
data
object
required