{% 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 stores owned by ownerId
.
This is an example of a data api method.
Example:
{% code title="queryOwnedStores.ts" overflow="wrap" lineNumbers="true" %}
import { ownedStores } from '@mintbase-js/data'
const {data, error} = await ownedStores('test.near', 'mainnet');
if (error) {console.log('error', error)}
console.log(data) // => owned stores list
{% endcode %}