Developer Resources

Documentation

Everything you need to build on, integrate with, or understand the Emoji Weather Economy.

Getting Started

To start building with the Emoji Weather Economy, you'll need a Web3 wallet (like Metamask) and some MATIC for transaction fees on Polygon.

Installation

bash
npm install ethers @climate-protocol/sdk

Basic Usage

javascript
import { ethers } from "ethers";
import ClimateEventTokenABI from "./abis/ClimateEventToken.json";

const provider = new ethers.BrowserProvider(window.ethereum);
const signer = await provider.getSigner();

const hotToken = new ethers.Contract(HOT_ADDRESS, ClimateEventTokenABI, signer);

// Fetch current weather composite
const composite = await hotToken.currentComposite();
console.log("Current Heat Composite:", composite.toString());