Install Packages
Install only the packages you need for your use case:- Client (Payer)
- Merchant
- Arbiter
- Helpers Only
Setup viem Clients
CreatepublicClient and walletClient using viem. All SDK classes require these as constructor arguments.
Contract Addresses
Get the deployed contract addresses from the network config:Network identifiers use the EIP-155 format:
eip155:<chainId>. For Base Sepolia, use 'eip155:84532'. For Base Mainnet, use 'eip155:8453'.Next Steps
Core Concepts
Learn about payment states, escrow, and the refund lifecycle.
Examples
Working examples for merchants, clients, and arbiters.
