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": "secp256k1_sign",
  "params": {
    "hash": "0x12345678",
  }
}'
{
  "method": "secp256k1_sign",
  "data": {
    "signature": "0x0db9c7bd881045cbba28c347de6cc32a653e15d7f6f2f1cec21d645f402a64196e877eb45d3041f8d2ab1a76f57f408b63894cfc6f339d8f584bd26efceae3081c",
    "encoding": "hex"
  }
}
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": "secp256k1_sign",
  "params": {
    "hash": "0x12345678",
  }
}'
{
  "method": "secp256k1_sign",
  "data": {
    "signature": "0x0db9c7bd881045cbba28c347de6cc32a653e15d7f6f2f1cec21d645f402a64196e877eb45d3041f8d2ab1a76f57f408b63894cfc6f339d8f584bd26efceae3081c",
    "encoding": "hex"
  }
}

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: secp256k1_sign

params
object
required
hash
string

Response

method
enum<string>
required

Available options: secp256k1_sign

data
object
required
signature
string
required
encoding
enum<string>

Available options: hex