Getting Started

Getting Started

Compound.js simplifies interaction with the protocol, making it developer-friendly. Here’s how to set it up and perform key actions:

  1. Install the Library:

    npm install @compound-finance/compound-js
  2. Set Up the SDK:

    const Compound = require('@compound-finance/compound-js');
    const compound = new Compound(window.ethereum); // Or use a custom RPC URL
    const comet = compound.comet.MAINNET_USDC(); 

NextPerforming Common Actions

Last updated