Uptick Service Documentation
  1. Developer documentation
Uptick Service Documentation
  • Platform introduction
    • Product Overview
    • Basic Terminology
  • User Guide
    • Service Callback method
    • Developer settlement process
    • Price and Fee Description
  • Developer documentation
    • Explanation of NFT Market Trading Models
    • Introduction to SDK and usage instructions.
    • Gateway authentication signature example
    • List of market trading contracts.
    • API
      • Collection of endpoints related to address book
      • Collection of endpoints related to asset
      • Collection of endpoints related to auction
      • Collection of endpoints related to common market
      • Collection of endpoints related to contract
      • Collection of endpoints related to coupon
      • Collection of endpoints related to limited-time coupon
      • Collection of endpoints related to the sale of specified NFTs.
      • Collection of endpoints related to fans
      • Collection of endpoints related to follow
      • Collection of endpoints related to Lazy minting
        • Query the information of the lazy minting collection.
        • Query lazy casting set extension information(logo banner twitter)
        • Modify the information of the lazy minting collection.
        • Modify lazy casting collection extension information (logo banner Twitter address)
      • Collection of endpoints related to nft
      • Collection of endpoints related to offer
      • Collection of endpoints related to order
      • Collection of endpoints related to wallet
      • Collection of endpoints related to words
      • Collection of endpoints related to product card
      • Collection of endpoints related to coupon code
  • Q&A
    • API invocation related issues
  • Contact us
    • Contact us
  • Collection of endpoints related to address book
    • Add address book.
      POST
    • Delete address book
      DELETE
    • Import address book by following fans
      GET
    • Query address book
      GET
    • Address book list
      GET
    • Update address book
      PATCH
  • Collection of endpoints related to asset
    • Query asset according to the ID.
      GET
    • Query assets by pagination.
      GET
    • Query asset transfers
      GET
  • Collection of endpoints related to auction
    • Create bid
      POST
    • Get the auction info.
      GET
    • Query the list of tokens I own,sort by creator
      GET
    • Get the auction info.
      GET
    • Query the list of tokens I own,sort by creator
      GET
  • Commemorative Card Management
    • Paginated Query of Commemorative Cards
    • Create Commemorative Card
    • Batch Create Commemorative Cards
    • Delete Commemorative Card
    • Query Commemorative Card Details
    • Paginated Query of Commemorative Cards
    • Paginated Query of Commemorative Cards
    • Paginated Query of Commemorative Cards
    • Paginated Query of Commemorative Cards
    • Paginated Query of Commemorative Cards
    • Update Commemorative Card
    • Query Commemorative Card Details
  • Collection of endpoints related to common market
    • List of ordinary sales contracts.
    • Information on listed NFTs
    • List of NFTs on the shelf.
    • Put on the shelf for sale.
  • Collection of endpoints related to contract
    • Add contract info
    • Delete contract
    • Query contract extension information(logo banner twitter)
    • Query contract info
    • Query contract by pagination.
    • Modify contract extension information
    • Modify the information of the contract.
  • Collection of endpoints related to coupon code
    • Create a coupon code.
    • List of collection.
    • Get coupon information.
    • List of NFTs on shelf.
    • Put on the shelf with preferential treatment.
  • Collection of endpoints related to coupon
    • Put on the shelf with limited-time coupon.
    • List of collection.
    • Get coupon information.
    • List of NFTs on shelf.
    • Put on the shelf with preferential treatment.
  • Collection of endpoints related to limited-time coupon
    • Put on the shelf with limited-time coupon.
    • List of collection.
    • Get couponTime information by coupon code.
    • Get couponTime information.
    • List of NFTs on shelf.
    • Put on the shelf with limited-time coupon.
  • Event Card Management
    • Paginated Query of Event Cards
    • Create Event Card
    • Batch Create Event Cards
    • Delete Event Card
    • Query Event Card Details
    • Perform a paged query of the activity list
    • Perform a paged query of the activity list
    • Perform a paged query of the activity list
    • Perform a paged query of the activity list
    • Paginated Query of Event Cards
    • Update Event Card
    • Create Verification
    • Paginated Query of Verification Records
    • Query Event Card Details
  • Collection of endpoints related to the sale of specified NFTs.
    • List of collection.
    • Get information.
    • List of NFTs on shelf.
    • Put specified NFTs on the shelf for sale.
  • Collection of endpoints related to fans
    • Add fans
    • Is fans
    • My fans
    • My focus
    • Delete fans
  • Collection of endpoints related to follow
    • Add follow
    • Is follow
    • Follow list
  • Collection of endpoints related to Lazy minting
    • Add NFT information (metadata information).
    • Add NFT information (metadata information).
    • Add presale information (ticket tiers).
    • Add placement preview images and multimedia information.
    • Add white list information (ticket tiers).
    • Delete NFT information (metadata information).
    • Delete the placement preview images and multimedia information.
    • Delete white list (ticket tiers).
    • Get current presale info
    • Get current presale info
    • Get rand nft info.
    • Is the current user on the whitelist
    • Details of the placement page.
    • Mint NFT sign
    • Details of NFT information (metadata information).
    • Details of NFT information (metadata information).
    • List of mints.
    • List of presale information (ticket tiers).
    • Details of placement preview images and multimedia information.
    • List of placement preview images and multimedia information.
    • Product details
    • Modify NFT information (metadata information).
    • Modify the placement preview images and multimedia information.
    • List of placement preview images and multimedia information.
  • Membership Card Management
    • Paginated Query of Membership Cards
    • Create Membership Card
    • Batch Create Membership Cards
    • Delete Membership Card
    • Query Membership Card Details
    • Perform a paged query of the membership cards.
    • Perform a paged query of the membership cards.
    • Perform a paged query of the membership cards.
    • Perform a paged query of the membership cards.
    • Paginated Query of Membership Cards
    • Update Membership Card
    • Create Verification
    • Paginated Query of Verification Records
    • Query Membership Card Details
  • Collection of endpoints related to nft
    • Add nft info
    • Add nft info
    • Delete nft
    • Get properties
    • Query NFT info
    • Query NFTs by pagination.
  • Collection of endpoints related to offer
    • List of offers received for the specified NFT.
    • Create a offer.
    • Search NFT highest offer list based on nft address
    • Search NFT highest offer list based on owner
    • Search NFT highest offer list based on owner
    • Get max offer group by token type
    • List of offers i have received.
    • My offer list.
  • Collection of endpoints related to order
    • Cancel order
    • Delete the unsuccessful orders.
    • Query according to the order number.
    • Order list
    • Nft Order history
    • Order in progress
    • Pre order
    • Sold order list
  • Collection of endpoints related to product card
    • Add NFT information.
    • Add white list information
    • Delete NFT information.
    • Delete white list.
    • Get current presale info
    • Query product card preview information
    • Get token data
    • Get token data update log
    • Is the current user on the whitelist
    • Mint NFT sign
    • Details of NFT information.
    • Details of NFT information.
    • List of mints.
    • Details of NFT information.
    • Query product card preview information
    • Product details
    • Modify NFT information (metadata information).
    • Modify NFT information (metadata information).
    • Modify product card preview information
    • List of white list.
    • write data
  • Promo Code Card Management
    • Paginated Query of Promo Code Cards
    • Create Promo Code Card
    • Batch Create Promo Code Cards
    • Delete Promo Code Card
    • Query Promo Code Card Details
    • Perform a paged query of the coupon list.
    • Perform a paged query of the coupon list.
    • Perform a paged query of the coupon list.
    • Perform a paged query of the coupon list.
    • Paginated Query of Promo Code Cards
    • Update Promo Code Card
    • Create Verification
    • Paginated Query of Verification Records
    • Query Promo Code Card Details
  • Collection of endpoints related to wallet
    • Add wallet info
    • Edit wallet info
    • Get wallet info
  • Collection of endpoints related to words
    • Add words
    • Delete message/reply records
    • Delete message/reply records to a group
    • Message/reply records to a group
    • Leave messages when adding to a group..
    • Message/Reply List
    • Message/Reply page list
    • Message/Reply read all
    • Message/Reply records
  1. Developer documentation

Gateway authentication signature example

Java language version
Dependencies required for Java signature (it is recommended to choose version 1.2.79).
         <groupId>com.alibaba</groupId>
         <artifactId>fastjson</artifactId>
         <version>1.2.79</version>
     </dependency>
    
    import com.alibaba.fastjson.JSON;
    import com.alibaba.fastjson.serializer.SerializerFeature;
    
    import java.nio.charset.StandardCharsets;
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import java.util.HashMap;
    import java.util.Map;
    
    public class UptickUtils {
    
        /**
        * Perform signature processing on request parameters.
        *
        * @param path ;
        * @param query     Query params,For example:"key1=value1&key2=value2",It needs to be converted to Map format.
        * @param body      Body params,For example:"{\"count\": 1, \"address\": \"random_string\"}",It needs to be converted to Map format.
        * @param timestamp For example:1647751123703
        * @param apiSecret API Secret,For example:"gV2dou/EfI45TiHhzUcQ1QClRQ2hsH+pu3gU3m8DYOg="
        * @return Result
        */
        public static String signRequest(String path, Map<String, Object> query, Map<String, Object> body, long timestamp, String apiSecret) {
            Map<String, Object> paramsMap = new HashMap();
    
            paramsMap.put("path_url", path);
    
            if (query != null && !query.isEmpty()) {
                query.forEach((key, value) -> paramsMap.put("query_" + key, String.valueOf(value)));
            }
    
            if (body != null && !body.isEmpty()) {
                body.forEach((key, value) -> paramsMap.put("body_" + key, value));
            }
    
            // Serialize the request parameters into a sorted JSON string.
            String jsonStr = JSON.toJSONString(paramsMap, SerializerFeature.MapSortField);
    
            // Signature
            String signature = sha256Sum(jsonStr + String.valueOf(timestamp) + apiSecret);
    
            return signature;
        }
    
        /**
        * SHA256 
        *
        * @param str
        * @return
        */
        private static String sha256Sum(String str) {
            MessageDigest digest = null;
            try {
                digest = MessageDigest.getInstance("SHA-256");
            } catch (NoSuchAlgorithmException e) {
                // Should not happen
                e.printStackTrace();
            }
            byte[] encodedHash = digest.digest(str.getBytes(StandardCharsets.UTF_8));
            return bytesToHex(encodedHash);
        }
    
        /**
        *  bytes to Hex
        *
        * @param hash
        * @return
        */
        private static String bytesToHex(byte[] hash) {
            StringBuilder hexString = new StringBuilder(2 * hash.length);
            for (int i = 0; i < hash.length; i++) {
                String hex = Integer.toHexString(0xff & hash[i]);
                if (hex.length() == 1) {
                    hexString.append('0');
                }
                hexString.append(hex);
            }
            return hexString.toString();
        }
    }
Previous
Introduction to SDK and usage instructions.
Next
List of market trading contracts.
Built with