npm ci
npm run build
cd /example
npm ci- cd
/example - create
/example/.envfile based on/example/.env.example - check and update
/example/src/index.tsfile npm run start
const walletAddress = sdkClient.getAddress();
console.log("Wallet Address:", walletAddress);const signedMessage = await sdkClient.signMessage("Hello, blockchain!");
console.log("Signed Message:", signedMessage);buySentientTokens(tokenAddress: string, amount: string): Buy Sentient tokenssellSentientTokens(tokenAddress: string, amount: string): Sell Sentient tokensbuyPrototypeTokens(tokenAddress: string, amount: string): Buy Prototype tokenssellPrototypeTokens(tokenAddress: string, amount: string): Sell Prototype tokens
checkSentientAllowance(amount: string, fromTokenAddress?): Check Sentient token allowanceapproveSentientAllowance(amount: string, fromTokenAddress?): Approve Sentient token allowancecheckPrototypeAllowance(amount: string, fromTokenAddress?): Check Prototype token allowanceapprovePrototypeAllowance(amount: string, fromTokenAddress?): Approve Prototype token allowance
getSentientListing(pageNumber?: number, pageSize?: number, chainId?: AGENT_CHAIN_ID): Get Sentient token listingsgetPrototypeListing(pageNumber?: number, pageSize?: number, chainId?: AGENT_CHAIN_ID): Get Prototype token listingssearchVirtualTokensByKeyword(tokenAddress: string): Fetch token details by address
fetchKlines(params: GetKlinesParams): Fetch K-line data
fetchLatestTrades(params: GetLatestTradesParams): Fetch latest trades data
If you are using this SDK for getting builder fee, please contact us at matthew@virtuals.io or victorng@virtuals.io