Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@matrix-labs/mono-nft-sdk

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@matrix-labs/mono-nft-sdk

`yarn add @matrix-labs/matrix-marketplace-nft-sdk`

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
3
Weekly downloads
 
Created
Source

Install

yarn add @matrix-labs/matrix-marketplace-nft-sdk


    /**
     * first step 
     *
     * @async
     * @param fcl:  import * as fcl from "@onflow/fcl"
     * @example  import * as fcl from "@onflow/fcl"; const client = new MatrixMarketClient();  client.bindFcl(fcl);
     */
    public bindFcl(fcl: any): Promise<void> 

    /**
     * check address whether support this NFTsCollection or not
     *
     * @async
     * @param {string} address
     * @returns {boolean} support or not
     * @if return false, invoke function initNFTCollection()
     */
    public async checkNFTsCollection(address: string): Promise<boolean> 

    /**
     * init NFTCollection for Address
     * @async
     * @returns {Promise<string>} transaction id
     * @example ret = await client.initNFTCollection();
     */
    public async initNFTCollection(): Promise<string> 
    
     /**
     * Get all assets from given account
     *
     * @async
     * @param {string} address
     * @returns {Promise<MatrixMarket[]>} transaction id
     * @example ret = await client.getNFTs("0x01cf0e2f2f715450");
     */
    public async getNFTs(account: string): Promise<MatrixMarket[]> 

    /**
     * mintNFTsBatch
     * @param string nftAdminAddress: 0x7f3812b53dd4de20
     * @param {string} recipientBatch - recipient address
     * @param {string} subCollectionIdBatch - subCollectionId
     * @param Array<{[key:string]:string}> metadataBatch - metadataBatch
     * @async
     * @returns {Promise<string>} transaction id
     * @example ret = await client.mintNFTs('0x7f3812b53dd4de20',[user.addr], ["1231as"],  [{key:"version",value:"1.0.0"}]).catch(console.error);
     */
    public async mintNFTs(
        nftAdminAddress: string, 
        recipientBatch: string[], 
        subCollectionIdBatch: string[], 
        metadataBatch: Array<{[key:string]:string}>): Promise<string> {
        

FAQs

Package last updated on 14 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc