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

Introduction to SDK and usage instructions.

uptick-web3-sdk#

Essential Web3 functions rolled into a single package#

Uptick Web3 SDK is a core element of these services. It consolidates essential Web3 functions into a single package, enabling developers to efficiently create business-specific applications using Uptick infrastructure. This approach allows developers to focus on business logic without needing to manage general-purpose modules or possess deep blockchain expertise.

Supports Vue Development Framework with React Native SDK coming soon#

Uptick Web3 SDK is a JavaScript SDK that currently supports the Vue development framework. React and React Native developers can refer to the contract files and calling methods within the SDK to assemble the signature manually. The React Native version of the SDK will be launched soon. SDKs for other programming languages are also in development, so stay tuned.

What Can Developers Do with the Uptick Web3 SDK?#

The Uptick Web3 SDK is a powerful tool for Vue projects, simplifying user connections to decentralized applications (DApps) and streamlining blockchain interactions. It supports both MetaMask and WalletConnect logins, making it ideal for applications that require user authentication and blockchain transactions.
This enables traditional businesses to integrate smoothly with Web3, and combines essential blockchain operations all into one package. The SDK saves time and resources, and empowers developers to build applications that integrate business logic without unnecessary complexity.
The SDK offers a range of NFT and RWA operations, including:
Deploying smart contracts
Minting NFTs/RWAs
Transferring assets
Supporting multiple sales modes, such as fixed-price listings, discounted sales, timed auctions, and lazy mints
These features allow developers to create decentralized wallets, launch NFT/RWA trading markets with a wide range of sales models, build membership systems, and engage with the evolving RWA ecosystem.

What's next?#

This SDK release marks the first step in making Uptick’s full range of services available to developers.
Next, we’ll deliver Uptick Services via cloud APIs, rolling out the service layer through iterative releases to simplify Web3 business application development for traditional developers.

Installing the SDK#

To install with Yarn, run:
yarn add @uptickjs/uptick-web3-sdk
To install with NPM, run:
npm install @uptickjs/uptick-web3-sdk

Initialize SDK#

Initialize SDK in the project entry file app.js
import { init as metaMaskInit } from '@uptickjs/uptick-web3-sdk/src/index';

let chainId=process.env.VUE_APP_ADD_NETWORK_CHAIN_ID;

let rpc=process.env.VUE_APP_ADD_NETWORK_CHAIN_UPC_URL;


let wallet=metaMaskInit(rpc,chainId)
Vue.prototype.$wallet = wallet.wallet;

Initialize walletConnect#

import { EthereumProvider } from "@walletconnect/ethereum-provider";
import { ethers } from "ethers";

export async function initProvider(){
		 const provider = await EthereumProvider.init({
		   projectId,
		   optionalChains: [chainIdInt], //current chainId
		   metadata: {
		       name: 'UptickNFT',
		       description: 'Build your NFT world on Uptick',
		       url: gethost(), // origin must match your domain & subdomain
		       icons: ['https://uptick.upticknft.com/logo.jpg']
		     },
		   optionalMethods: ["eth_sendTransaction",
		                  "personal_sign",
		                  "eth_estimateGas",
		                  
                            "eth_signTypedData"],
		   showQrModal: true,
		   qrModalOptions: {
		     themeMode: "light",
		   },

           rpcMap: {
            117:uptickUrl,
        
          }
		 });
		 provider.chainId=chainIdInt;
		const WalletProvider = new ethers.providers.Web3Provider(provider)
		  provider.on("display_uri", (uri) => {
		   		    events.$emit('wallet_is_connect',uri)
		  });
		  // chain changed
		  provider.on('chainChanged', (result) => {
		   
		  });
		  // accounts changed
		  provider.on('accountsChanged', (accounts) => {
		    
                
		  });
		  // session established
		  provider.on('connect', (result) => {
		  let walletparams = {
            connected:true
          }
              localStorage.setItem("walletconnect",JSON.stringify(walletparams) );
		   
		  });
		  
		  provider.on('session_event', (result) => {
		    		  });
		  provider.on('disconnect',(result) => {
		  		  });
		
		  window.walletProvider=provider;
		  return provider;
		 
	 }
	 

Method introduction#

Get user information, get the currently linked wallet address#

getAccountInfo()

Convert Evm address to Uptick address#

getUptickAddress()
ParamsParameter typeParameter description
evmAddressStringUser address

Get balance#

getTokenBalance()
ParamsParameter typeParameter description
ownerStringUser address

Create a contract#

deploy()
ParamsParameter typeRequireParameter description
nftTypeStringtruenft type
nameStringtruecontract name
metadataUrlStringfalsemetadata information
lazySignAddressStringfalsesignature address, used to verify signature when minting assets

Mint NFTs#

mintNft()
ParamsParameter typeRequireParameter description
nftTypeStringtruenft type
toAddressStringtruereceiving address
nftIdStringtruenftId
metaDataUrlStringtruemetadata information
royaltyPercentageStringtrueShare ratio
amountValueNumberfalseQuantity

Lazy mint NFTs#

lazyNftMint()
ParamsParameter typeRequireParameter description
toAddressStringtrueReceiving address
nftIdStringtruenftId
metaDataUrlStringtrueMetadata information
payAddressStringtruePayment address of token contract
payAmountNumbertruePayment amount
creatorFeeNumbertruePayment fee
signatureStringtrueSignature information

Set the contract address#

setContractAddress()
ParamsParameter typeParameter description
nftTypeStringnft type
platformAddressStringtransaction contract address

NFT Transfer#

transferFrom()
ParamsParameter typeParameter description
nftTypeStringnft type
toAddressStringreceiving address
nftIdStringnftId
amountValueNumbertransfer amount

NFT Listing#

onSale()
ParamsParameter typeParameter description
nftTypeStringnft type
nftAddressStringnft contract address
nftidStringnftid
valueStringListing price
feeNumberHandling fee
amountNumberListing quantity
payAddressStringThe token contract address for selling your NFT

NFT Listing in Batches#

onSaleBatch()
ParamsParameter typeParameter description
nftTypeStringnft type
nftAddressStringnft contract address
nftidsArraynftid
valueArrayListing price
feeNumberHandling fee
amountsArrayListing quantity
payAddressArrayThe token contract address for selling your NFT

Discounted Sales#

couponOnSale()
ParamsParameter typeParameter description
nftTypeStringnft type
nftAddressStringnft contract address
nftidStringnftid
valueStringListing price
couponCodeStringDiscount code
reducedPriceNumberDiscount price
feeNumberHandling fee
amountNumberListing quantity
payAddressStringThe token contract address for selling your NFT

Timed-auction#

auction_onsale()
ParamsParameter typeParameter description
nftTypeStringnft type
nftAddressStringnft contract address
nftidStringnftid
startTimeStampStringauction start time
endTimeStampStringauction end time
startBidStringstarting price
fixPriceStringfixed price
ReserveBidStringreserve price
feeNumberhandling fee
amountNumberlisting quantity
payAddressStringThe token contract address for selling your NFT

Place a bid in auction#

auction_placeBid()
ParamsParameter typeParameter description
nftTypeStringnft type
nftAddressStringnft contract address
nftidStringnftid
fixPriceNumberBidding price
payAddressStringThe token contract address for bidding
ownerStringBidder address

NFT Delisting#

offSale()
ParamsParameter typeParameter description
nftTypeStringnft type
nftAddressStringnft contract address
nftidStringnftid

NFT Delisting in Batches#

offSaleBatch()
ParamsParameter typeParameter description
nftTypeStringnft type
nftAddressStringnft contract address
nftidsArraynftid

Withdraw an auction#

auction_end()
ParamsParameter typeParameter description
nftTypeStringnft type
nftAddressStringnft contract address
nftidStringnftid
ownerStringERC1155 type, requires the address of the owner

NFT Purchasing#

placeOrder()
ParamsParameter typeParameter description
nftTypeStringnft type
nftAddressStringnft contract address
nftidStringnftid
toAddressStringbuyer address
priceNumberpurchase price
marketTypeStringpurchase type
couponCodeStringcoupon code, fill in ‘0’ if none
couponLinkStringcouponLink, fill in ‘0’ if none
payAddressStringThe token contract address for purchasing

Place an Offer#

createOffer()
ParamsParameter typeParameter description
nftTypeStringnft type
offerNumberStringOffer number (random number)
nftAddressStringnft contract address
nftidStringnftid
payAddressStringThe token contract address for offer
payAmountNumberOffer amount
expiryStringOffer validity period
feeNumberHandling fee

Withdraw an Offer#

cancelOffer()
ParamsParameter typeParameter description
nftTypeStringnft type
offerNumberStringOffer number (random number)

Accept an Offer#

acceptOffer()
ParamsParameter typeParameter description
nftTypeStringnft type
offerNumberStringoffer number (random number)
nftAddressStringnft contract address
nftidStringnftid
offerPlatformAddressStringoffer contract address

Authorize cross-chain contracts#

setBridgeApproval()
ParamsParameter typeParameter description
nftTypeStringnft type

Query cross-chain transfer fees#

getFeeByChainID()
ParamsParameter typeParameter description
tokenIdsArraytokenid
chainIdNumberchainid

Support NFT cross-chain transfer, between Uptick with Polygon\Arbitrum\BSC#

uptickCrossToEVM()
ParamsParameter typeParameter description
srcChainNameStringSource chain name
destinationChainIdNumberTarget chain chainid
toAddressStringReceiving address
metadateStringMetadate information
offerPlatformAddressStringOffer contract address

Problem Reporting#

https://github.com/UptickNetwork/uptick-web3-sdk/issues
Previous
Explanation of NFT Market Trading Models
Next
Gateway authentication signature example
Built with