Create a Public Client
Transaction Flow
The SDK follows a prepare → sign → send → receipt pattern, similar to Viem.Step 1: Prepare
Build the unsigned transaction with nonce, chain ID, and gas parameters populated automatically:data for contract calls:
Step 2: Sign and Send
Sign the prepared transaction with your server wallet key and broadcast it to the network:Step 3: Wait for Receipt
Block until the transaction is confirmed on-chain:Full Example
Sign a Message
Sign an arbitrary string message (EIP-191 personal sign):Sign Typed Data (EIP-712)
Sign structured data following the EIP-712 standard:Sign Raw Payload
Sign an arbitrary hex-encoded payload with a specific hash function:Next Steps
- Gasless Relayer — sign meta-txs with server wallet, submit via relayer
- Export & Security — export private keys and follow security best practices