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": 5000000000
    }
  }
}'
{
  "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": 5000000000
    }
  }
}'
{
  "method": "eth_sendTransaction",
  "data": {
    "hash": "0xfc3a736ab2e34e13be2b0b11b39dbc0232a2e755a11aa5a9219890d3b2c6c7d8",
    "caip2": "eip155:11155111",
    "transaction_id": "y90vpg3bnkjxhw541c2zc6a9"
  }
}

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
transaction
object
required
from
string
to
string
chain_id
string
nonce
string
data
string
value
string
type
number

Available options: 0, 1, 2

gas_limit
string
gas_price
string
address
string
chain_type
string

Available options: ethereum

Returns

method
enum<string>
required

Available options: eth_sendTransaction

data
object
required
hash
string
required
caip2
string
required
transaction_id
string