Wallet Management
Get or Create Wallet
Get or create a wallet for the given chain and return its public address. If a wallet doesn’t exist for the user and chain combination, one will be created automatically.cURL
Request Parameters
The blockchain to create the wallet for. Available values:
ETH, SOL, BTCResponse Fields
The wallet’s public address on the specified blockchain.
Each user can have one wallet per blockchain. Calling this endpoint multiple times with the same user and chain will return the same wallet address.
Signing Operations
Sign Data
Sign a hash of arbitrary data using the wallet’s private key. This is useful for signing transaction data, typed data, or any structured information.cURL
Request Parameters
The blockchain to sign for. Available values:
ETH, SOL, BTCThe keccak256 hash of the data to sign (hex string with 0x postfix).
Response Fields
The hash that was signed.
The complete signature in hex format.
The r component of the ECDSA signature.
The s component of the ECDSA signature.
The recovery parameter of the ECDSA signature.
Sign EIP-7702 Authorization
Sign an EIP-7702 authorization that delegates an EOA to a smart contract implementation. This is used to temporarily upgrade an EOA into a smart wallet for a transaction bundle, enabling features like batched calls and gas sponsorship.cURL
Request Parameters
The blockchain to sign for. Available values:
ETHThe chain ID for the authorization (e.g.,
84532 for Base Sepolia).The smart contract address to delegate to (20-byte hex string).
The authorization nonce.
Response Fields
The r component of the ECDSA signature (decimal string).
The s component of the ECDSA signature (decimal string).
The y-parity bit (
0 or 1) used for EIP-7702 signature recovery.Sign Message
Sign an arbitrary message using the wallet’s private key. Useful for authentication, off-chain verification, and personal signatures.cURL
Request Parameters
The blockchain to sign for. Available values:
ETH, SOL, BTCThe message to sign, encoded as base64.
Response Fields
The complete signature in hex format.
The r component of the ECDSA signature.
The s component of the ECDSA signature.
The recovery parameter of the ECDSA signature.