Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

getTokenAllowance

node v18.11.0
version: 2.0.0
endpointsharetweet
const { getTokenAllowance } = require("wido") const { spender, allowance } = await getTokenAllowance({ chainId: 1, // Mainnet fromToken: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC toToken: "0xa258C4606Ca8206D8aA700cE2143D7db854D168c", // yvWETH accountAddress: "0xaCfE4511CE883C14c4eA40563F176C3C09b4c47C", // User }) console.log(spender) console.log(allowance)
Loading…

no comments

    sign in to comment