Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Client

IRISHub Client

Hierarchy

  • Client

Index

Constructors

constructor

Properties

auth

auth: Auth

Auth module

bank

bank: Bank

Bank module

config

IRISHub Client Config

distribution

distribution: Distribution

Distribution module

keys

keys: Keys

Key management module

nft

nft: Nft

NFT module

protobuf

protobuf: Protobuf

Protobuf module

rpcClient

rpcClient: RpcClient

Axios client for tendermint rpc requests

slashing

slashing: Slashing

Slashing module

staking

staking: Staking

Staking module

tendermint

tendermint: Tendermint

Tendermint module

token

token: Token

Token module

tx

tx: Tx

Tx module

utils

utils: Utils

Utils module

Methods

withChainId

  • withChainId(chainId: string): this
  • Set IRISHub chain-id

    Parameters

    • chainId: string

      IRISHub chain-id

    Returns this

    The SDK itself

withFee

  • withFee(fee: Coin): this
  • Set default fees

    Parameters

    • fee: Coin

      Default fee amount

    Returns this

    The SDK itself

withGas

  • withGas(gas: string): this
  • Set default gas limit

    Parameters

    • gas: string

      Default gas limit

    Returns this

    The SDK itself

withKeyDAO

  • withKeyDAO(keyDAO: KeyDAO): this
  • Set Key DAO Implemention

    Parameters

    • keyDAO: KeyDAO

      Key DAO Implemention

    Returns this

    The SDK itself

withNetwork

  • withNetwork(network: Network): this
  • Set IRISHub network type

    Parameters

    • network: Network

      IRISHub network type, mainnet / testnet

    Returns this

    The SDK itself

withRpcConfig

  • withRpcConfig(rpcConfig: AxiosRequestConfig): this
  • Set Axios config for tendermint rpc requests, refer to: https://github.com/axios/axios#request-config.

    Note the baseURL is set by SdkConfig.node and cannot be overwritten by this config

    Parameters

    • rpcConfig: AxiosRequestConfig

      Axios config for tendermint rpc requests

    Returns this

    The SDK itself

Generated using TypeDoc