metapro
  • 🤝Welcome!
  • 💻metapro market
    • Set your account
    • Connect wallet + web3 login
    • Side panel
      • Transfer NFT
        • Multiple transfer (Airdrop NFT)
          • Import CSV List
      • Sell NFT
        • Initial NFT Selling (INS)
          • How to setup INS auction
          • How to buy on INS auction
        • Buy Now
          • How to setup Buy Now auction
          • How to buy on Buy Now auction
        • Auction (Bidding)
          • How to setup Auction
          • How to buy on Auction
      • All NFT assets
    • Buy Crypto
    • Top Menu
      • Profile
        • Profile Marketplace
        • My games
        • My assets
          • Royalty
        • Activities
      • Referral Panel
        • Register your downline
        • Downline wallets
        • My referral link
      • Profile Settings
      • Developer Portal
      • Logout
    • Assets
      • Marketplace
        • Auction Card
      • Most favorite
      • Newest assets
        • Asset Card
    • Games
      • Show all games
    • Leaderboard
    • Create asset (minter)
      • Gaming asset specification
      • How to create (mint) asset
        • 1. Setup NFT token
        • 2. Setup metadata
        • 3. Add meta asset
        • 4. Mint meta asset
        • 5. Meta asset created
    • Developers Portal
      • Create team
      • Create game
      • Developers Portal Panel
      • Unity Plugin
      • How to list game on metapro market?
    • Creators
    • Teams
    • Users
    • Wallet App
    • Launcher
    • Market and auction component fees
  • 🚀METAPRO LAUNCHER
    • What is metapro launcher?
    • Download launcher
    • Set your account
      • Login to launcher
    • Home
    • Games
      • Game card on launcher
        • Assets in this game
      • Install game on launcher
      • Update game on launcher
    • My games
      • Installed
      • Not installed
      • Wishlist
    • My assets
      • Collected assets
      • Created assets
      • Wishlist
    • NODEs app
  • 📱metapro one
    • About non-custodial wallet
    • Download & set up
      • Create new metapro wallet
      • Import existing wallet
    • Settings
      • Avatar
      • Multiple wallets
      • Wallet name
      • Private Key
        • Protect Private Key
        • How to find my Private Key
      • Recovery Phrases
        • Protect Recovery Phrases
        • How to find my Recovery Phrases
      • Application version
    • Network switch
    • Deposit (Tokens and Collectibles)
    • Send (Tokens and Collectibles)
      • Send Tokens
      • Send Collectibles (NFT)
    • Buy (Buy and Sell Crypto)
    • Browser
    • My assets
      • Tokens
        • Asset view
        • Adding Tokens
        • Activities
      • Collectibles (NFT)
      • Game assets (NFTma)
    • Explore
      • Apps
      • Collections (NFT)
      • Game assets (NFTma)
    • How to claim Airdrop
    • How to import wallet from MetaMask to metapro
    • Supported devices
  • ⛓️metapro protocol
    • API
      • Users service
      • Teams service
      • Apps service
      • Nft service
      • Nft events service
    • Meta asset
    • Metadata structure
    • Protocole structure
    • Unity Plugin
      • About metapro Unity plugin
      • What's new
      • Guides
        • Installation
        • Requirements
        • Package samples
        • Quick start
          • 1. Editor
            • Access tool
            • Import game key
            • Download resources
            • App data object
            • Change game key
            • Use app data in script
          • 2. Play mode (PC)
            • Enable Web3 in your game
            • Choose provider
            • Connect wallet
            • Login with Web3
            • Display user data
            • Show app tokens
            • Use user and app data from script
          • 3. Play mode (Mobile)
            • Enable Web3 in Your game
            • Choose provider
            • Connect wallet
            • Login with Web3
        • AFP (Additional Features Packages)
          • 1. Safe token transfer
          • 2. Phoenix
        • Troubleshooting
      • Reference
        • MetaproAPPSetup
        • Editor Window
        • Plugin Manager
        • Web3 connection providers
          • metapro
          • Wallet Connect
          • MetaMask
        • WindowController
        • AFP (Additional Features Packages)
          • SafeTransferFrom
          • Phoenix
  • 🛠️WALLET CONNECTOR
    • Introduction
    • Basic informations
      • Next 13 integration
      • React integration
      • Manual installation
  • 👨‍💻Developer Documentation
    • Introduction to Developer Documentation
      • What is a Meta asset?
      • What are the Benefits of Using Tokens as Access Keys for the Game Application
      • Why should I Choose the Meta Assets as the Access Keys for the Game Application?
      • How Does It Work, Exactly?
    • Available Environments
    • Blockchain Communication and information retrieval
      • How can we verify/distinguish a user?
      • How can we track a user's transactions?
      • What information can we obtain?
    • Integration with the Leaderboard service
    • Integration for in-Wallet Apps
    • Integration for Telegram Mini Apps
      • Integration Architecture and Configuration
      • Authorization and Session Management
      • Example Integration and Features
      • Code Examples from the Repository
      • Summary and Appendices
    • Developer documentation for the Construct 3 Plugin
      • Construct 3 - Install plugin
      • Plugin Configuration
      • User onboarding and authorization
      • User Management
      • Score System
      • Leaderboard System
      • Referral System
      • Gameplay
      • Smart Contract Interactions
      • User NFTs
      • Error Handling
      • Additional Getters for Plugin Properties
    • Integration Web3 with Your Game
      • What is Web3
      • Blockchain Basics
      • Differences between chains
      • What is a NFT
      • Advantages of Web3 Gaming
      • Examples of Web3 Games
    • Onboarding the Web3 Player
      • Value for Players
      • Explanation of Cryptocurrency Wallet
      • Rewards for Tournament Participation
      • Reselling Owned Assets
      • Integration of Metapro Wallet Connector
      • Displaying Data for Unlogged Users
      • How to Get Authorization Data
      • User Authorization Benefits
    • Creating Your First Meta Asset
      • The Difference between NFT and Meta Asset
      • Security and Transparency
      • Concept and Value of Meta Assets
      • How and Where to Create Your Meta Asset
        • Step-by-Step Guide on How to Create Your Asset
        • Explanation of URI (Metadata structure)
        • Explanation of the Meta Asset Data taken from our Back End
    • Implementing Meta Assets into Your Game
      • Integrate your Meta Asset to your game using Unity
      • Verify User Tokens Ownership
      • Displaying All User-Owned Tokens
      • Displaying All Assets Assigned to the Game on the Metapro Market
    • Smart Contracts
      • MetaproINS
        • Read Contract
        • Write Contract
      • MetaproBuyNow
        • Read Contract
        • Write Contract
      • MetaproAuction
        • Read Contract
        • Write Contract
      • MetaproMetaAsset
        • Read Contract
        • Write Contract
      • MetaproRoyalty
        • Read Contract
        • Write Contract
      • MetaproReferral
        • Read Contract
        • Write Contract
      • MetaproAirdrop
        • Read Contract
        • Write Contract
    • Universal Links & App Links with WalletConnect
  • 🔎General information
    • Blockchain
    • Blockchain Network Fee
    • Blockchain Native Token
    • Token ERC-1155 vs ERC-721
  • 📄Release Notes
    • Introduction to the Release Notes
    • Marketplace Updates
      • Release 07.03.2024
      • Release 06.03.2024
      • Release 04.03.2024
      • Release 19.02.2024
      • Release 24.01.2024
      • Release 09.01.2024
      • Release 03.01.2024
      • Release 21.12.2023
      • Release 18.12.2023
      • Release 13.12.2023
      • Release 12.12.2023
      • Release 02.12.2023
      • Release 30.11.2023
      • Release 24.11.2023
      • Release 22.11.2023
      • Release 17.11.2023
      • Release 13.11.2023
      • Release 09.11.2023
      • Release 08.11.2023
      • Release 07.11.2023
      • Release 31.10.2023
      • Release 26.10.2023
      • Release 25.10.2023
      • Release 24.10.2023
      • Release 18.10.2023
      • Release 05.10.2023
      • Release 03.10.2023
      • Release 29.09.2023
      • Release 18.09.2023
      • Release 14.09.2023
      • Release 12.09.2023
      • Release 06.09.2023
      • Release 25.08.2023
      • Release 17.08.2023
      • Release 04.08.2023
      • Release 31.07.2023
      • Release 21.07.2023
      • Release 18.07.2023
      • Release 13.07.2023
    • Games Launcher Updates
      • Release 13.03.2024
      • Release 24.01.2024
      • Release 04.01.2024
      • Release 22.11.2023
      • Release 03.10.2023
      • Release 31.07.2023
      • Release 27.07.2023
      • Release 20.07.2023
      • Release 13.07.2023
    • Wallet Updates
      • Release 04.03.2024
      • Release 03.10.2023
      • Release 29.09.2023
      • Release 15.09.2023
      • Release 30.08.2023
      • Release 18.07.2023
Powered by GitBook
On this page
  1. Developer Documentation
  2. Blockchain Communication and information retrieval

What information can we obtain?

You can retrieve various user-related data from the blockchain, depending on what data is stored on the blockchain and accessible through appropriate queries or APIs. Here are some typical types of data you can obtain:

  1. Wallet Address: Every blockchain user has a unique wallet address that serves for identification. You can use it for user identity verification.

  2. Transaction History: You can check the transaction history associated with a user's wallet address. This includes both incoming and outgoing transactions, along with details like the amount, date, and the recipient's or sender's address.

  3. Account Balance: You can check a user's current account balance on the blockchain, which can be useful for determining if the user meets specific access conditions.

  4. NFT Tokens: If you use non-fungible tokens (NFTs), you can check which NFTs a user owns in their collection.

  5. Transaction Set Data: For more advanced applications, you can collect data about sets of transactions a user has made or is associated with. This may include data about smart contracts or recorded operations.

  6. Interaction History with Contracts: If a user has interacted with specific smart contracts on the blockchain, you can gather data about those interactions, such as invoked functions and passed parameters.

  7. Token Metadata: In the case of NFTs, each token may contain metadata describing its properties and appearance. These metadata can be used in games or applications to create interactive experiences.

  8. Voting or Delegation History: If you're working on a blockchain that supports voting or delegation, you can access a user's history of votes or delegations to verify their participation in these processes.

The availability of this information will depend on the blockchain your application operates on and the available developer tools and interfaces. It's essential to follow privacy and data protection rules when collecting and using this information.


Example of an Endpoint Used in our 'Users' Explorer to retrieve information about a user and data that was filled up in our Marketplace

GET user-service/profiles?queryParameters

Returns information about the selected profiles according to the given query parameters - e.g. wallet addresses and roles, it can be sorted according to the creation date, and the updated date and there can be a limit of the returned profiles array.

Requirements:

Authorization Headers:

  • There is no need for authorization, it is a public endpoint.

Query parameters:

Name

Description

skip

(number, optional): The number of records to skip in the response.

limit

(number, optional): The maximum number of records to return in the response.

wallets

(string, optional) Sort by a specific wallet to retrieve information.

elympicsUserIds

(string, optional) Elympics identifier for optimal user identification.

roles

(string, optional) Role of the user.

createdAt (sort)

(string, optional) Sort by the user's creation date on our platform.

updatedAt (sort)

(string, optional) Sort by the user's last update date.

visitedAt (sort)

(string, optional) Sort by the user's last visit date.

Example cURL
curl 'https://api.metaproprotocol.com/users-service/profiles?wallets=0x832735f45299c8b6f7263e758cadba766459cd21&limit=9999' \
  -H 'authority: api.metaproprotocol.com' \
  -H 'accept: */*' \
  -H 'accept-language: pl-PL,pl;q=0.9,en-US;q=0.8,en;q=0.7' \
  -H 'cache-control: no-cache' \
  -H 'origin: https://metapromarket.com' \
  -H 'pragma: no-cache' \
  -H 'referer: https://metapromarket.com/' \
  -H 'sec-ch-ua: "Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "Linux"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: cross-site' \
  -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36' \
  --compressed
Example response body (200 OK)
{
    "results": [
        {
            "_id": "631e4bb31e8b6a43b8a53d71",
            "id": "7c291368-c590-411c-b226-7a2b89010747",
            "userId": "7c291368-c590-411c-b226-7a2b89010747",
            "role": [
                "user",
                "creator",
                "game-developer"
            ],
            "addresses": [
                {
                    "wallet": "0x832735f45299c8b6f7263e758cadba766459cd21",
                    "chainId": 56,
                    "userId": "7c291368-c590-411c-b226-7a2b89010747",
                    "createdAt": "2022-09-11T20:57:23.777Z",
                    "updatedAt": "2022-09-11T20:57:23.777Z"
                }
            ],
            "socialMedia": [],
            "createdAt": "2022-09-11T20:57:23.784Z",
            "updatedAt": "2023-09-28T05:51:28.642Z",
            "visitedAt": "2023-09-28T05:51:28.642Z",
            "personalDetails": {
                "username": "Meta Dude",
                "bio": "MetaDude is an integral part of our team, responsible for crafting the core assets that define our digital projects.\nWith a remarkable blend of artistic vision and technical expertise, MetaDude brings to life visually stunning 3D models, textures, animations, and audio assets.",
                "avatar": "https://prdmetaprousers.blob.core.windows.net/avatars/fbd27456-3bf6-4f9d-b2b5-cce06d1a453e.jpeg",
                "banner": "https://prdmetaprousers.blob.core.windows.net/banners/dc08d8ad-e45a-4198-9c26-786ef6739ca5.jpeg"
            }
        }
    ],
    "count": 1
}
Example of the response body (400 Bad Request)
{
   "statusCode": 400,
       "messages": [
            "Incorrect username or wallet address"
                ],
       "error": "Bad Request"
            }
Example of the response body (404 Not found)
{
    "statusCode": 404,
    "messages": [
      "Not Found"
    ],
    "error": "Not Found"
  }
Additional information regarding the wallet address path
  • When there is an invalid wallet address syntax, then a 400 error code will be thrown

  • When the wallet address is valid but does not exist in the registry, then a 404 error code will be thrown

PreviousHow can we track a user's transactions?NextIntegration with the Leaderboard service

Last updated 7 months ago

👨‍💻