MASChain Documentation

website·Indexed 31 days ago

https://docs.maschain.com

API documentation for MASChain services, including Custom Smart Contract deployment and management, Wallet Management for organizations and entities, Token Management for ERC-20 tokens, Non-fungible token (NFT) Management, e-KYC identity verification, and Transaction services for explorer display and auditing.

Tokens
33.3K
Snippets
202
Records
243
Agent score
57%

What's inside MASChain

  1. Overview of e-KYC Management service

    The e-KYC Management service provides a digital solution for verifying customer identities to streamline onboarding. It utilizes OCR (Optical Character Recognition) verification and facial recognition to authenticate individuals in real-time.

    Important Constraint: The e-KYC service is disabled in Testnet and is only available in Mainnet.

  2. Overview of MasWallet

    MasWallet is a secure, blockchain-based wallet serving as the primary gateway for the MasChain ecosystem. It acts as both a digital asset manager and an authentication/transaction approval layer, functioning similarly to an OAuth2 flow (like 'Login with Google') for dApps and web portals. Key capabilities include blockchain-based identity authentication, secure transaction approval for smart contracts, and management of MASV and custom tokens on MasChain.
  3. Introduction to the Audit Trail service

    The Audit Trail service is designed to streamline data traceability and integrity by recording every record on the blockchain. This ensures that data is easily trackable and immutable. The service is composed of three main API modules: Audit Trail, Audit Tags, and Audit Category.
  4. Overview of the Maschain Transaction Service

    The Transaction service is designed to manage explorer display settings and provide detailed transaction information. Its primary feature sets include Transaction data delivery and Explorer Display Options.
  5. Introduction to Wallet Management Service

    The Wallet Management service is designed to manage multiple wallets for organizations or entities. The system organizes these wallets and their owners using the following categories: Wallet, Wallet Category, Entity, and Entity Category.
  6. Overview of Non-fungible token (NFT) Management service

    The Non-fungible token Management service provides a suite of tools to manage custom NFTs. Its core feature set includes the ability to create and list smart contracts, mint and transfer NFTs, manage ownership transfers, and retrieve specific NFT and deployment data.
  7. MasWallet security architecture

    MasWallet employs a client-side security model where private keys never leave the user's device. The architecture includes end-to-end encryption, optional 2FA and biometrics, and role-based access control for institutional users.
  8. Implement a Fishery Tracker supply chain audit trail

    The Fishery Tracker use case demonstrates how to build a Node.js backend that records every handoff of a catch (vessel → landing → processor → market) on-chain. This creates a verifiable, tamper-proof story for consumers. The system uses an Audit Trail contract to store hashes of catch data and Wallet Management to ensure each actor signs their specific handoff.
  9. Manage ERC-20 tokens with the Token Management service

    The Token Management service provides a set of tools to manage custom ERC-20 tokens. It supports standard token operations including minting, burning, and transferring, as well as administrative controls to pause and resume token activity.
  10. Retrieve NFT certificate details

    Use the get-certificate endpoint to retrieve details about an NFT. All query parameters are optional, allowing for flexible filtering by wallet addresses, contract address, transaction ID, or status.
    GET API_URL/api/certificate/get-certificate?from={address}&to={address}&contract_address={address}&transaction_id={tx_id}&status={status}

    Headers:

    • client_id: Your client ID
    • client_secret: Your client secret
    • content-type: application/json

    Query Parameters:

    • from (Optional): Sender wallet address
    • to (Optional): Receiver wallet address
    • contract_address (Optional): The smart contract address
    • tx_id (Optional): The transaction ID
    • status (Optional): success, fail, or pending (Default: success)
  11. Get details for a specific Smart Contract Project

    Retrieve detailed information about a specific smart contract project using its unique project slug. This endpoint requires client_id and client_secret in the request headers.
    curl -X GET "API_URL/api/contract/projects/{projectSlug}" \
         -H "client_id: YOUR_CLIENT_ID" \
         -H "client_secret: YOUR_CLIENT_SECRET"
  12. Map business use cases to MasChain services

    MasChain integrations typically combine multiple services to solve specific business problems. Depending on the requirement, the following service combinations are recommended:

    • Loyalty & Rewards Points: Use Token Management and Wallet Management.
    • University Certificates / Green Badges: Use Certificate (NFT) and Wallet Management.
    • Tree Tracker / Fishery Tracker / Code Streak: Use Audit Trail and Wallet Management.