0.0.2 • Published 1 year ago
use-skip-hook v0.0.2
API
Here are the main functions and variables in the API:
useSkip(apiKey: string)
: A function that does something with an API key.chains
: An array of supported chains.assets
: An object containing assets for each chain.route
: Route data for a transfer.messages
: Messages to execute a route.fetchAssets(chainId: string)
: A function that fetches assets for a specified chain.getRoute(source: { denom: string; chainId: string }, destination: { denom: string; chainId: string }, amount: string)
: A function that gets a route for transferring an asset.getMessages(route: Route, userAddresses: { [key: string]: string }, slippageTolerance: string, affiliates: Array<{ address: string; fee_amount: string }>)
: A function that gets messages for executing a route.