Movement

Deploy an ERC 721 smart contract & mint on Xai mainnet through Xai Builder

Curated by

Sequence

ID Type

EVM ADDRESS

Cred Type

REST

Last Update Time

07/06/2024, 12:47:42

Method

POST

Header

{"X-Access-Key":"***"}

Endpoint

https://xai-indexer.sequence.app/***

Body

{
  "filter": {
   "accountAddress": "$address" },  "includeMetadata": true  
  }

Expression

function (resp) {
  if (
    resp && 
    Array.isArray(resp.transactions) && 
    resp.transactions.length > 0 &&
    resp.transactions[0] && 
    Array.isArray(resp.transactions[0].transfers) && 
    resp.transactions[0].transfers.length > 0 &&
    resp.transactions[0].transfers[0] && 
    resp.transactions[0].transfers[0].contractInfo && 
    typeof resp.transactions[0].transfers[0].contractInfo.bytecodeHash === "string" &&
    resp.transactions[0].transfers[0].contractInfo.bytecodeHash === "0x77d12b9637a99b3ba23920eea929a68cc89b49a0e1ff4d2a71b798550cc0060e" &&
    resp.transactions[0].transfers[0].contractType === "ERC721"
  ) {
    return 1;
  }
  return 0;
}