{% hint style="warning" %}
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.
{% endhint %}
Returns accounts for which publicKey
is a full access key.
accountsByPublicKey(publicKey: string, network?:"testnet" | "mainnet"): Promise<ParsedDataReturn<string[]>>
Example:
{% code title="accountsByPublicKey.ts" overflow="wrap" lineNumbers="true" %}
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'
{% endcode %}