Skip to main content
For chains supported at the Tier 2 level, you can invoke Privy’s raw sign functionality to sign over a hash, e.g. the hash of a transaction. You can then use the returned signature to submit and send your transaction. Alternatively, you can provide the bytes to hash with a specific encoding and a hash_function, and get the same response. For examples of how to use raw sign for a specific chain, see this recipe.
Sign a raw hash or bytes (with encoding and hash_function) along the blockchain’s cryptographic curve using the wallet’s private key. Make a POST request to

Usage

A successful response will look like:
Alternatively, you can provide bytes to hash with a specific encoding and hash function, and gets a similar response.

Authorization

Authorization
string
required
App secret authentication.

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

wallet_id
string
required
ID of the wallet.

Body

params
object
required

Response

data
object
required
error
object