approve

node v18.11.0
version: 2.0.0
endpointsharetweet
const { approve } = require("wido") const { to, data } = await approve({ chainId: 1, // Mainnet fromToken: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC toToken: "0xa258C4606Ca8206D8aA700cE2143D7db854D168c", // yvWETH accountAddress: "0xaCfE4511CE883C14c4eA40563F176C3C09b4c47C", // User }) console.log(to) // USDC console.log(data) // Unsigned tx that will give Wido permission to spend your tokens
Loading…

no comments

    sign in to comment