Constructors
constructor
- new Mint(conn: Connection, key: PublicKey): Mint
Parameters
conn: Connection
key: PublicKey
Methods
getBalance
- getBalance(user: PublicKey): Promise<number>
Parameters
Returns Promise<number>
getDecimals
- getDecimals(): Promise<number>
getInfo
- getInfo(): Promise<MintInfo>
Returns Promise<MintInfo>
getSupply
- getSupply(): Promise<number>
mintTo
- mintTo(user: PublicKey, sender: WalletI, amount: number): Promise<string>
Parameters
user: PublicKey
sender: WalletI
amount: number
Returns Promise<string>
Static create
- create(conn: Connection, decimals: number, owner: PublicKey, sender: WalletI): Promise<Mint>
Parameters
conn: Connection
decimals: number
owner: PublicKey
sender: WalletI
Returns Promise<Mint>
Static get
- get(conn: Connection, key: PublicKey): Mint
Parameters
conn: Connection
key: PublicKey