Skip to content

Latest commit

 

History

History
54 lines (17 loc) · 839 Bytes

File metadata and controls

54 lines (17 loc) · 839 Bytes

contract Minter

{% 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 contract minters by contractAddress.

contractMinters( contractAddress: string | string[], network?: "testnet" | "mainnet")

This is an example of a data api method.

Example:

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

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



const { data, error } = await contractMinters('teammintbase.mintbase1.near', 'mainnet');

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


console.log(data) // => contract minters

{% endcode %}