Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
162
Maintainers
3
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

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


Version published
Weekly downloads
62
increased by6100%
Maintainers
3
Created
Weekly downloads
 

Readme

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

Last updated on 21 Nov 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc