Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Coin

Index

Constructors

  • new Coin(symbol: string, decimals: number, mint: PublicKey, mintAuthority: Keypair, freezeAuthority: Keypair): Coin
  • Parameters

    • symbol: string
    • decimals: number
    • mint: PublicKey
    • mintAuthority: Keypair
    • freezeAuthority: Keypair

    Returns Coin

Properties

decimals: number
freezeAuthority: Keypair
mint: PublicKey
mintAuthority: Keypair
symbol: string

Methods

  • fundAccount(decimalAmount: number, owner: Keypair, connection: Connection): Promise<void>
  • Parameters

    • decimalAmount: number
    • owner: Keypair
    • connection: Connection

    Returns Promise<void>

  • getBalance(owner: Keypair, connection: Connection): Promise<RpcResponseAndContext<TokenAmount>>
  • Parameters

    • owner: Keypair
    • connection: Connection

    Returns Promise<RpcResponseAndContext<TokenAmount>>

Generated using TypeDoc