Skip to main content

fetchMinaAccount

Callable

  • fetchMinaAccount(params: { force?: boolean; publicKey: string | PublicKey; tokenId?: string | Field }): Promise<{} | { account: undefined }>

  • Fetches the Mina account for a given public key with error handling


    Parameters

    • params: { force?: boolean; publicKey: string | PublicKey; tokenId?: string | Field }

      the parameters for fetching the account

      • optionalforce: 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

      • optionaltokenId: string | Field

        the token id of the account

    Returns Promise<{} | { account: undefined }>

    the account object