Socket
Book a DemoInstallSign in
Socket

across-bridge-v3-sdk

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

across-bridge-v3-sdk

Light-weighted SDK for interacting with Across V3 API

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Across V3 SDK

A lightweight SDK for interacting with the Across V3 API.

Installation

npm install across-v3-sdk

Usage

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',
});

API Reference

createAcrossClient()

Creates a new instance of the Across client.

getSuggestedFees(params: AcrossSuggestedFeesParams)

Get suggested fees for a bridge transaction.

getLimits(params: AcrossLimitsParams)

Get deposit limits for a token pair.

getAvailableRoutes(params?: AcrossAvailableRoutesParams)

Get available bridge routes.

getDepositStatus(params: AcrossDepositStatusParams)

Get the status of a deposit.

License

ISC

Keywords

across

FAQs

Package last updated on 29 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts