@swapkit/toolbox-cosmos

Installation

<pnpm|bun> add @swapkit/toolbox-cosmos

Cosmos based

import { GaiaToolbox, KujiraToolbox } from '@swapkit/toolbox-cosmos'

const gaiaToolbox = GaiaToolbox()
const kujiToolbox = KujiraToolbox()

THORChain based

Implements all methods from Cosmos based toolboxes with addition to thorchain-specific features

import { ThorchainToolbox, MayaToolbox } from '@swapkit/toolbox-cosmos'

const thorchainToolbox = ThorchainToolbox({ stagenet: false })
const mayaToolbox = MayaToolbox({ stagenet: false })

Types

Fees

type Fees = {
  average: SwapKitNumber;
  fast: SwapKitNumber;
  fastest: SwapKitNumber;
};

TransferParams

type TransferParams = {
  assetValue: AssetValue;
  fee?: StdFee;
  feeOptionKey?: FeeOption;
  from: string;
  memo?: string;
  privkey?: Uint8Array;
  recipient: string;
  signer?: OfflineDirectSigner;
};

Last updated