KlimaDAO
  • Welcome to KlimaDAO
  • What is KlimaDAO?
  • Why KlimaDAO Exists
  • 🌍Ecosystem
    • Digital Carbon
    • Carbon Pools
    • The Role of KlimaDAO
  • ⚙️Economics
    • Overview
    • Operational Mechanics
      • Intrinsic Value
      • Protocol Owned Liquidity (POL)
      • Fungible Carbon Credits
    • Dynamics
      • Supply Expansion
      • Supply Contraction
      • Green Ratio
    • Purpose
      • Means of Exchange
      • Store of Value
      • Unit of Account
  • 🛠️Developers
    • Overview
    • Retirement Aggregator
    • Automation
    • Bug Bounty
    • Contracts
      • DAO Wallet
      • Policy
      • Retirement
        • V2 - Diamond
          • Generalized Retirement
          • Bridge-Specific Tooling
      • Staking
      • Tokens
      • Treasury
    • Data Sources
    • Deployment Addresses
    • Guides
      • Stake KLIMA
      • Wrap sKLIMA
      • Retire Carbon
      • Retirement Aggregator V1 Contract Guide
      • Retirement UI Integration Guide
    • Integration Examples
    • Testing
  • 🔄Auto Compounder
    • Auto Compounder App Guide
    • Auto Compounder FAQ
  • 🏛️DAO
    • Governance Framework
    • Organizational Structure
  • 📚References
    • FAQ
    • History
    • Glossary
    • Links
    • Translations
    • FAQ Carbon Markets
    • About Verified Carbon Credits
    • Estimating Carbon Emissions
  • 🙋‍♀️Get Involved
    • Community Discord
    • Governance Forum
    • Contact Us
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Developers
  2. Guides

Retirement UI Integration Guide

Frontend application for retiring tokenized carbon credits

Query Params

To facilitate integrations, the KlimaDAO retirement interface supports query parameters to prefill a defined set of arguments.

Every field can be pre-filled, including selective retirement.

  quantity, // 1.23
  inputToken, // "bct" | "nct" | "mco2" | "usdc" | "klima" | "sklima" | "wsklima";
  retirementToken, // "bct" | "nct" | "mco2";
  beneficiary, // John Doe
  beneficiaryAddress, // 0x12345678912345678912345678912345678912345
  message, // Hello world
  projectTokens  // 0x12345678912345678912345678912345678912345

You can provide multiple arguments for projectToken and these will be automatically filled into the selective retirement fields (and the 'Advanced' dropdown will open itself to reveal them automatically).

Example URL with all fields filled, and 2 selective project tokens:

https://app.klimadao.finance/#/offset
  ?quantity=123
  &inputToken=klima
  &retirementToken=mco2
  &projectTokens=0x1234
  &projectTokens=0x5678
  &beneficiary=The%20Devs
  &beneficiaryAddress=0x123
  &message=Thanks%20devs!
PreviousRetirement Aggregator V1 Contract GuideNextIntegration Examples

Last updated 1 year ago

Was this helpful?

🛠️
Original pull request implementing this feature for reference.