The Across SDK is written and maintained by the engineering team at Risk Labs.
We recommend using the API, which wraps SDK functions and has an easier interface. However, if speed is a concern then we recommend reviewing the API implementation of the SDK to understand best how to use the SDK.
To add the SDK to your project, use npm or yarn to
npm install @across-protocol/sdk-v2or
yarn add @across-protocol/sdk-v2.
This can be used either in a frontend application or a node js project.
- relayFeeCalculator: Get suggested
relayerFeePctfor a deposit, which accounts for opportunity cost of capital and gas costs. If the depositor opts to set this fee lower than the suggested fee, then there is a chance that the deposit goes unfilled for a long time.