Skip to main content

Read contracts

Install viem. These examples use Base Sepolia; choose addresses and network availability from deployed contracts.
Reads need an RPC connection. Each contract page gives the ABI signatures for its example.

Send a contract call

Connect your selected wallet through its EIP-1193 walletProvider. Supply the connected address as account when simulating a write:
The contract examples simulate the requested call, ask the wallet to sign it and wait for its receipt. Keep the selected account and chain fixed during the operation. Save the returned hash before waiting; if confirmation is interrupted, look it up before submitting again.

Build and test locally

Clone the blockchain repository, install Foundry, then run from contracts/:
Use --contracts src with this repository: its Solidity files are in src/. The build uses the configured optimizer and IR pipeline. The tests cover minting, license purchases, repeat purchases, variation rights, payment rollback, creator updates and split calculations. Forge reference ยท Contract source