Skip to main content
Some API operations require a cryptographic signature from your wallet. The examples below show how to generate one using a private key or an injected browser wallet (e.g. MetaMask).

Private key signing example

Here we use a private key directly which is the most straightforward way to sign data and does not require access to an authenticated node. It’s also the fastest.

Injected provider signing example

Here we use ethers.js and show an example with MetaMask — any injected provider that exposes eth_signTypedData_v4 will work.
This signing scheme uses the EIP-712 typed data standard.
Last modified on March 26, 2026