fetchMinaAccount
Function: fetchMinaAccount()
function fetchMinaAccount(params: {
force: boolean;
publicKey: string | PublicKey;
tokenId: string | Field;
}): Promise<Account | undefined>
Defined in: packages/abi/src/fetch.ts:11
Fetches the Mina account for a given public key with error handling
Parameters
params
the parameters for fetching the account
force
boolean
whether to force the fetch - use it only if you are sure the account exists
publicKey
string
| PublicKey
the public key of the account
tokenId
string
| Field
the token id of the account
Returns
Promise
<Account
| undefined
>
the account object
Updated 10 days ago