Retiring Credits Onchain
CarbonRegistry.com credits can be permissionlessly retired onchain without using CarbonRegistry.com APIs. Follow the guidelines below to complete the process.
The Project Contract's Retire Function
function retire(
uint256 tokenId, // The ID of the exPost credits to be retired
uint256 amount, // The amount of credits to be retired, where 1 tCO2-e = 10^18 tokens
address beneficiary, // The wallet address that will receive the retirement NFT
string memory retireeName, // Name to be displayed on the official CarbonRegistry.com retirement certificate
string memory customUri, // Optional: Off-chain data URI for the retirement NFT
string memory comment, // Comment to be displayed on the CarbonRegistry.com retirement certificate
bytes memory data // Data required to generate the CarbonRegistry.com retirement certificate (see format below)
) external returns (uint256 nftTokenId) ;Retire Function Data Parameter
Data ParameterRetirement Data Restrictions and Guidelines
Unfinalized Retirements
Testing Data
Retirement Examples on CarbonRegistry.com
Last updated