sinQlarity Docs
  • Developers Documentation
  • INTRODUCTION
    • KEY BENEFITS
    • KEY FEATURES
  • OUR USP's
  • GOALS
  • USE CASES
    • DEFI
    • NFTs
    • GAMING
    • SOCIAL
    • INFRASTRUCTURE
    • GOVERNANCE
    • SECURITY
  • ARCHITECTURE
  • USER FLOW
  • USE CASE FOR CHAINS
  • Getting Started
    • PLATFORM, API & LIBRARY
    • LIBRARY INSTALLATION
    • LIBRARY USAGE
    • HOW TO IMPLEMENT FUNCTIONS
  • CONTRACT DETAILS
    • CROWD FUND
    • DAO
    • DUTCH AUCTION
    • ENGLISH AUCTION
    • ERC-20
    • ERC-20 OPENZEPPLIN
    • ERC-20 SWAP
    • ERC-721
    • ETHER WALLET
    • GAS WHITELIST
    • ICO
    • LIQUIDITY POOL
    • MERKLE PROOF
    • MULTISIG
    • OWNABLE
    • PIGGY BANK
    • STAKING
    • SUBSCRIPTION
    • TIMELOCK
    • TODO
    • UNI-PAYMENT CHANNEL
    • UNISWAP
    • VAULT
    • VOTING
    • WHITELIST
    • CHAINLINK ORACLE
    • BI-DIRECTIONAL PAYMENT
    • AIRDROP
Powered by GitBook
On this page
  1. Getting Started

LIBRARY USAGE

BACKEND INTEGRATION:

  1. Import the Sinqlarity module from the "Triweb" library.

  2. Initialize the Sinqlarity instance with yourproject_Id, sinqlarityKey, and sinlaritySecret. These credentials likely authenticate your backend with SinQlarity.

  3. Generate an authentication token for backend operations using sinqlarity.getAuthenticationToken(). This token can have a customizable expiration time.

FRONTEND INTEGRATION:

  1. Import the SinqlarityClient module from the "SinQlarity" library along with constants for NETWORKS and CONTRACTS.

  2. Transfer the sinqlarityAuthenticationToken obtained from the backend to the front end.

  3. Initialize the SinqlaritySlient instance on the front end using the transferred authentication token.

  4. Execute smart contract functions on the front end using sinqlarityClient.execute(NETWORKS.POLYGON, CONTRACTS.NFT_MARKET_PLACE.MINT_NFT, data).

WALLET INTEGRATION:

  1. To enable MetaMask integration, you can use sinqlarityClient.authenticate when a user logs in with MetaMask.

  2. After authorization, the frontend can continue to execute operations on any chain by calling sinqlarityClient.execute as needed.

PreviousLIBRARY INSTALLATIONNextHOW TO IMPLEMENT FUNCTIONS

Last updated 8 months ago