Skip to content

Latest commit

 

History

History
45 lines (17 loc) · 758 Bytes

File metadata and controls

45 lines (17 loc) · 758 Bytes

ownedStores

{% 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.

ownedStores(ownerId: string, network?: "testnet" | "mainnet")

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 %}