A lightweight SDK for interacting with the Across V3 API.
npm install across-v3-sdk
import { createAcrossClient } from 'across-v3-sdk';
const client = createAcrossClient();
// Get suggested fees
const fees = await client.getSuggestedFees({
originChainId: '1',
destinationChainId: '2',
inputToken: '0x123...',
outputToken: '0x456...',
amount: '1000000',
});
// Get limits
const limits = await client.getLimits({
originChainId: '1',
destinationChainId: '2',
inputToken: '0x123...',
outputToken: '0x456...',
});
// Get available routes
const routes = await client.getAvailableRoutes({
originChainId: '1',
destinationChainId: '2',
});
// Get deposit status
const status = await client.getDepositStatus({
originChainId: '1',
depositId: '123',
});
Creates a new instance of the Across client.
Get suggested fees for a bridge transaction.
Get deposit limits for a token pair.
Get available bridge routes.
Get the status of a deposit.
ISC