npm.io
0.0.2 • Published 2 years agoCLI

use-skip-hook

Licence
MIT
Version
0.0.2
Deps
2
Size
1.7 MB
Vulns
0
Weekly
4

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.

Keywords