ContractKit has been sunset for external use. Please use viem or wagmi for connecting with the blockchain.Check out the migration guide for updating your dapp from ContractKit to viem.To learn more visit the Celo forum.
Interacting with CELO & cUSD
celo-blockchain has two initial coins: CELO and cUSD (Mento stabletoken). Both implement the ERC20 standard, and to interact with them is as simple as:Interacting with Other Celo Contracts
Apart from GoldToken and Mento stabletokens, there are many core contracts. For the moment, we have contract wrappers for:- Accounts
- Attestations
- BlockchainParameters
- DobleSigningSlasher
- DowntimeSlasher
- Election
- Escrow
- Exchange (Uniswap kind exchange between Gold and Stable tokens)
- GasPriceMinimum
- GoldToken
- Governance
- LockedGold
- Reserve
- SortedOracles
- Validators
- StableToken
A Note About Contract Addresses
Celo Core Contracts addresses, can be obtained by looking at theRegistry
contract.
Thatās actually how kit
obtain them.
We expose the registry api, which can be accessed by:
Accessing web3 contract wrappers
Some user might want to access web3 native contract wrappers. We encourage to use the Celo contracts instead to avoid mistakes. To do so, you can:- Accounts
- Attestations
- BlockchainParameters
- DoubleSigningSlasher
- DowntimeSlasher
- Election
- EpochRewards
- Escrow
- Exchange
- FeeCurrencyWhiteList
- GasPriceMinimum
- GoldToken
- Governance
- LockedGold
- Random
- Registry
- Reserve
- SortedOracles
- StableToken
- Validators
Debugging
If you need to debugkit
, we use the well known debug node library.
So set the environment variable DEBUG
as: