Get access to 180+ protocols through Enso for onchain actions, such as swap, deposit, lend, borrow etc.
npm install @goat-sdk/plugin-enso
yarn add @goat-sdk/plugin-enso
pnpm add @goat-sdk/plugin-enso
import { enso } from '@goat-sdk/plugin-enso';
const tools = await getOnChainTools({
wallet: // ...
plugins: [
enso({
apiKey: process.env.ENSO_API_KEY
})
]
});
- Find the most optimal route between 2 tokens and execute it