The official Mento Protocol SDK for interacting with Multi-Collateral Mento smart contracts on the Celo network.
# Install with npm
npm install @mento-protocol/mento-sdk
# Or install with yarn
yarn add @mento-protocol/mento-sdkYou can find example usages of the SDK in the mento-sdk-examples repository. For in-depth documentation and walk through explanations please see the SDK section of the Mento docs.
Anytime we launch a new stable token, we need to update the tokens & tradable pairs caches.
- The
yarn cacheTokensscript generates a TypeScript file containing a list of all tradable Tokens on the Mento protocol. This cache can be used by UIs to avoid costly async token data lookups. - The
yarn cacheTradablePairsscript generates a TypeScript file containing a list of all tradable pairs on the Mento protocol. This file is used to cache the tradable pairs in the SDK and avoid costly re-fetching from the network.
Current token connectivity on Celo Mainnet (last updated: 2025-10-02):
graph TD
USDT["USD₮"]
USDC --- USDm
axlUSDC --- USDm
USDT --- USDm
AUDm --- USDm
CADm --- USDm
CELO --- USDm
GBPm --- USDm
USDm --- ZARm
CHFm --- USDm
PHPm --- USDm
JPYm --- USDm
COPm --- USDm
BRLm --- USDm
axlEUROC --- EURm
EURm --- USDm
GHSm --- USDm
NGNm --- USDm
KESm --- USDm
USDm --- XOFm
Network Stats: 20 tokens, 19 direct trading pairs
💡 This graph shows direct trading pairs only. The SDK automatically finds optimal routes including multi-hop paths.
To regenerate:
yarn getTokenGraph