Nuvo Documentation
  • Nuscriptions
    • Overview
    • Quick Guide
      • How to mint
        • Step 1 - Connect account
        • Step 2 - Mint
        • Step 3 - Check owned tokens
        • Step4 - Check my account
    • What's different
    • Protocol
      • Hotfix1
    • Indexer
    • Frontend
      • Step-by-Step Instructions
      • Feedback and Notifications
    • Marketplace
      • Auction
      • Spot
      • Derivatives
    • API
      • Overview
      • Get Balance of an Inscription for an address
      • Get Next ID for Minting
      • Get Delegation Amount
      • CheckID Availability
      • Get Status of an Transaction
      • Inscription Existence Verification (id)
      • List Owned Tokens
      • Get Deployment Details
      • Get Mint Amount
      • Get Token Owner
      • Get Transaction History of a Token
      • List All Minted Inscriptions
      • Inscription Existence Verification (tx_hash)
      • Construct Deployment Message
      • Construct Mint Message
      • Construct Transfer Message
      • Get Tokens
      • Get Number of Holders for Ticker
  • Nuvosphere
  • Get Started
    • Product Guides
      • Reputation Power Web 3.0 for Dapp Owners
      • How does Reputation Power work
      • Who are our customers
      • Where to Get Started with
      • Navigate to NuvoOne
        • How to create a dapp
        • How to design an NFT badge
        • How to issue NFT Badge and set up the campaign
      • Navigate to NuvoMe
      • Navigate to NuvoID
      • Navigate to NuvoBadge Claim
    • Demo videos
      • NuvoID_Introduction
      • NuvoMe_Claim event badge
      • NuvoOne_Introduction
      • NuvoOne_Web2 integrated with Nuvo
      • NuvoOne_Login
      • NuvoOne_Create Dapp
      • NuvoOne_Deploy Badge
      • NuvoOne_Campaign
      • NuvoOne_Manage Distribution
    • Step by Step guide to Issue Nuvo Badge
      • Access Nuvo One test environment
      • Create a new application
      • Issue Nuvo Badge
      • Distribute Nuvo Badge
      • Deploy the Nuvo Badge Project on Testnet
      • Repeat The Process on Nuvosphere Production Environment
  • Developer Guide
    • API List
      • Oauth2 Authorization
        • Dapp APIs
          • Get Dapp info
          • Get Dapp list
        • Badge APIs
          • Badge info
          • Badge claim
          • Badge favourite
        • User APIs
          • Get Eth Address with Name
          • Get Eth Address with NuvoID
          • Get user info
        • Wallet APIs
          • Token Transfer
            • Get latest price
            • Get token transfer list
            • Save token transfer info
            • Get transaction info
            • Get SDK transaction record
            • Get transfer list
          • Domain Transaction
            • Get chain URL
            • Get balance
            • Verify wallet pwd
            • Confirm transaction
            • Initiate transaction
        • NFT Badge Deploy
          • Deploy NFT Badge
          • Dapps NFT deployed list
          • Dapp Promotion
          • Upload Image
          • Update Dapp Promotion
          • Deployed NFT Badge List
          • NFT Detail
          • NFT Promotion
          • Update NFT Promotion
          • Update NFT Name
          • Update NFT start time & end time
          • Update NFT Badge Images
        • Badge Issuer
          • Set NFT Mint Permission
          • Badge Issue List
          • Update NFT Badge Issue Info
          • NFT Badge Upgrade Setup
          • NFT Badge Mint
      • Oauth2 Owner
        • Dapp management
          • Create Dapp
          • Update Dapp
          • Delete Dapp
          • Get Dapp List
          • Get Dapp Detail
        • Domain management
          • Create Domain
          • Get Domain
          • Update Domain
          • Delete Domain
        • Badge Issuer
          • NFT Badge Mint
          • Update NFT Properties
          • Badge Detail
          • Deployed NFT Badge List
          • Upload Image
          • Deploy NFT Badge
          • NFT RP Upgrade
          • Badge Query Data
        • User APIs
          • User Registration
          • Dapp Registration user list
    • SDK
    • Integration Center
    • BLS Wallet
    • MPC Wallet
    • NuvoBadge Graph
      • Introduction
      • Graph Schemas
        • NftBadgeEntity
        • DappEntity
        • UserEntity
        • UserDappMap
        • UserBadgeMap
  • Announcement
    • Nuvo Reputation Power explanation and FAQ
    • NuvoBadge Protocol
  • troubleshooting
    • Why MetaMask cannot connect to Nuvo
Powered by GitBook
On this page
  • Get claimed badge proof
  • Scan and claim
  • Get task status and result
  1. Developer Guide
  2. API List
  3. Oauth2 Authorization
  4. Badge APIs

Badge claim

Get claimed badge proof

GET /api/v1/oauth2/badge/claiminfo

For user used wallet mint transaction

Query Parameters

Name
Type
Description

white_code*

String

white code

claim_type

Number

default =1

Headers

Name
Type
Description

Access-Token*

String

access token

{
    "code": 200,
    "data": [
        {
            "code": "0f70662562ec52699a922f85ba308924",
            "contract_name": "TATEEWAA",
            "dapp_name": "MMTest",
            "is_claim_start": true, //whether start or not
            "is_upgrade_start": false,//not yet 
            "issue_type": 1,
            "level": 1,
            "nft_address": "0xdf58C11e624565ea718672A78134352f3e2cF31B",
            "nft_logo": "https://metis.memosync.org:6083/matrix-test/689c57ebcc184958876577730924c170.png",
            "nft_name": "TATEEWAA",
            /*proof for badge request parameter
             *reference:https://github.com/nuvosphere/RP2/blob/master/packages/cUtils/polisClient.ts#LL227C12-L227C12
             * tx = await contract.claimByCode(code,proof,data);
             */
            "proof": [
                "0xfa7ed0f7bdf82b1fe2608a8a80c2b0f3293d078e366a6243aeca87ab0167a320",
                "0x4ec5738617a571d260dcff0e945bbfa9ecdcd2371d5758c4e5bedd29532b0aa7",
                "0x38efb985b1bb9f53b0d69d1a60e841feaef1649246ce27c98077c6fb8c4f0098",
                "0x574cefb33df41467ab296ef28acfce8cfba84333238c8fcc95e267339b6657a5"
            ], 
            "rp": 1
        }
    ],
    "msg": ""
}

Scan and claim

POST /api/v1/oauth2/badge/scan_mint

Headers

Name
Type
Description

Access-Token*

String

access token

Request Body

Name
Type
Description

contract_address*

String

badge contract address

code*

String

claimed code

wait

Boolean

default =true false then will base on the return task ID and search the result.

{
    "code": 200,
    "data": {
        "badge_logo": "https://metis.memosync.org:6083/matrix-test/c80f9830fdb24dee9df772027aa74f24.png",
        "is_upgrade": false
    },
    "msg": ""
}
// wait=false
{
    "code": 200,
    "data": {
        "task_id": "2b9b947596bc5652a035fa009eb9588e" //task id
    },
    "msg": ""
}

Get task status and result

GET /api/v1/oauth2/task/result

Query Parameters

Name
Type
Description

task_id*

String

task id

Headers

Name
Type
Description

Access-Token*

String

access token

{
    "code": 200,
    "data": {  //task result
        "code": 500,
        "msg": {
            "code": -32000,
            "message": "execution reverted: address had minted."
        },
        "status": 2 //task status. 2-failure 1-succeed 0-porcessing
    },
    "msg": ""
}
PreviousBadge infoNextBadge favourite

Last updated 1 year ago

For ex: "" The code before "," is the badge address. While after"," is the code address

http://me.nuvosphere.io/#/claim-badge?code=0x88f8ff6c7259031303c146cb7caa3a24055cdbb7,0ca2e6b4f2be922270dda4e95dcc3c03