Options
All
  • Public
  • Public/Protected
  • All
Menu

Interacts with the Untitled Stable Coin project's token.

Hierarchy

  • TokenClient

Index

Constructors

Properties

Methods

Constructors

constructor

  • new TokenClient(nodeUrl: string, tokenAddress: string): TokenClient
  • Create a new TokenClient.

    Parameters

    • nodeUrl: string

      The URL of the node to connect to.

    • tokenAddress: string

      The address of the Token.

    Returns TokenClient

Properties

Private Readonly tezos

tezos: TezosToolkit

A TezosToolkit

Methods

approveToken

  • approveToken(spender: string, amount: BigNumber, wallet: InMemorySigner | TempleWallet): Promise<TransactionWalletOperation | TransactionOperation>
  • Approve an allowance for an FA1.2 token

    Parameters

    • spender: string

      The account who can spend

    • amount: BigNumber

      The amount to spend

    • wallet: InMemorySigner | TempleWallet

      The wallet that will approve

    Returns Promise<TransactionWalletOperation | TransactionOperation>

getBalance

  • getBalance(address: string, tokenContractStorage?: any): Promise<BigNumber>
  • Get the balance of tokens for a user.

    Parameters

    • address: string
    • tokenContractStorage: any = ...

    Returns Promise<BigNumber>

    The token balance.

Generated using TypeDoc