How to integrate the G$ token
Integrating the G$ Token
Contracts
g$Contract: {
production: {
celo: "https://celoscan.io/address/0x62B8B11039FcfE5aB0C56E502b1C372A3d2a9c7A",
fuse: "https://explorer.fuse.io/address/0x495d133B938596C9984d462F007B676bDc57eCEC",
},
staging: {
celo: "https://celoscan.io/address/0x61FA0fB802fd8345C06da558240E0651886fec69",
fuse: "https://explorer.fuse.io/address/0xe39236a9Cf13f65DB8adD06BD4b834C65c523d2b",
},
development: {
celo: "https://celoscan.io/address/0xFa51eFDc0910CCdA91732e6806912Fa12e2FD475",
fuse: "https://explorer.fuse.io/address/0x79BeecC4b165Ccf547662cB4f7C0e83b3796E5b3",
},
},Prerequisites
Option 1: transferAndCall (Recommended)
transferAndCall (Recommended)Overview
Use Case Example
Example: Ethers v6
Option 2: Leveraging ERC-777 for Token Transfers
Option 3: approve + transferFrom
approve + transferFromOverview
Example: Viem/Wagmi (React)
Example: Ethers v6
Additional Considerations
Transaction Fees
Token Decimals
Balance Checks
Contract Compatibility
Notes on Ethers v6
Example Use Case: Marketplace Checkout
Method
Flow
Pros
Cons
📚 References
Last updated
Was this helpful?