Skip to content

Latest commit

 

History

History
48 lines (17 loc) · 808 Bytes

File metadata and controls

48 lines (17 loc) · 808 Bytes

checkStoreName

Checks if that store name already exists.

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

checkStoreName( name: string, network?: "testnet" | "mainnet" )

This is an example of a data api method.

Example:

{% code title="queryStoreData.ts" overflow="wrap" lineNumbers="true" %}

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



const { data, error } = await checkStoreName('my cool store', 'mainnet');

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


console.log(data?.nft_contracts.length === 0) // => true / false

{% endcode %}