accountsByPublicKey

This is a work in progress, please reach out to us on Telegram for support.

For the most reliable data, reference our existing graphql docs.

Returns accounts for which publicKey is a full access key.

accountsByPublicKey(publicKey: string, network?:"testnet" | "mainnet"): Promise<ParsedDataReturn<string[]>>

Example:

accountsByPublicKey.ts

import { accountsByPublicKey } from  '@mintbase-js/data'

const { data, error } = await accountsByPublicKey('ed25519:12345...', 'testnet');

if (error) {console.log('error', error)}

console.log(data) // => 'foo.testnet'

Last updated