RathRath Finance
SDK Reference

Types and Enums

TypeScript types, interfaces, and enums used throughout the Tachyon SDK.

Types and Enums

ChainId

Enum of supported blockchain network IDs:

enum ChainId {
  ETHEREUM = 1,
  OPTIMISM = 10,
  BSC = 56,
  POLYGON = 137,
  ARBITRUM_ONE = 42161,
  BASE = 8453,
  // ... and more
}

TransactionStatus

Enum of possible transaction statuses:

enum TransactionStatus {
  NOT_PICKED_UP = 'NOT_PICKED_UP',
  PENDING = 'PENDING',
  EXECUTED = 'EXECUTED',
  FAILED = 'FAILED',
  NEEDS_TO_BE_RETRIED = 'NEEDS_TO_BE_RETRIED'
}

TransactionSpeed

Gas-pricing strategy accepted by relay(), relaySync(), and getQuote():

type TransactionSpeed = 'fast' | 'economical'
  • fast is the default and prioritizes transaction inclusion using Tachyon's standard chain-specific gas-price buffer.
  • economical uses a smaller gas-price buffer and may take longer to confirm.

On this page