Constructors
constructor
- new Coin(symbol: string, decimals: number, mint: PublicKey, mintAuthority: Keypair, freezeAuthority: Keypair): Coin
Parameters
symbol: string
decimals: number
mint: PublicKey
mintAuthority: Keypair
freezeAuthority: Keypair
Properties
freezeAuthority
freezeAuthority: Keypair
mintAuthority
mintAuthority: Keypair
Methods
fundAccount
- fundAccount(decimalAmount: number, owner: Keypair, connection: Connection): Promise<void>
Parameters
decimalAmount: number
owner: Keypair
connection: Connection
Returns Promise<void>
getBalance
- getBalance(owner: Keypair, connection: Connection): Promise<RpcResponseAndContext<TokenAmount>>
Parameters
owner: Keypair
connection: Connection
Returns Promise<RpcResponseAndContext<TokenAmount>>