Skip to main content

Steps using @0xkey-io/react-wallet-kit

1

Initialize the React Provider

Wrap your app with ZeroXKeyProvider as described in Getting started with React Wallet Kit:
2

Serialize an unsigned transaction

signTransaction takes the serialized unsigned transaction as hex. For Ethereum, build an EIP-1559 (type 2) transaction with any library, for example ethers:
3

Sign with the user's wallet and broadcast

Transaction-signing requests are evaluated against transaction-field policies (eth.tx.*); see Policy language.
For Viem or Solana signing, see @0xkey-io/viem and @0xkey-io/solana, or the GitHub examples.