getMintAndProgram()
getMintAndProgram()
function getMintAndProgram(
connection,
address,
commitment?): Promise<{
mint: Mint;
tokenProgramId: PublicKey;
}>;Defined in: utils.ts:598
Retrieve information about a mint and its program ID, supports all Token Programs.
Parameters
| Parameter | Type | Description |
|---|---|---|
connection | Connection | Connection to use |
address | PublicKey | Mint account |
commitment? | Commitment | Desired level of commitment for querying the state |
Returns
Promise<{
mint: Mint;
tokenProgramId: PublicKey;
}>
Mint information