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
eth.tx.*); see Policy language.@0xkey-io/viem and @0xkey-io/solana, or the GitHub examples.