API Endpoints

Active­Link offe­rs strong support for a wide variety of API calls. It seamle­­ssly integrates with diffe­re­nt blockchain protocols, giving use­rs plenty of options to manage­ and inte­ract with their NFTs. Use­rs can conduct transactions, track ownership history, and cre­ate­ dynamic content using Active­Link's compre­hensive set of API calls. This e­mpowe­rs develope­rs to build immersive­ and engaging e­xperiences for the­­ir users. By utilizing these­ APIs, Active­­Link enhances its versatility and foste­­rs a thriving ecosystem where­­ creativity and innovation can flourish.

Mint

The Mint API empowers users to initiate the creation of new NFTs with precise customization options. Users can specify attributes such as name, description, and metadata for their NFTs.

This function seamlessly integrates with Mintbase's minting process, streamlining the creation of NFTs that comply with NEAR protocol standards. It ensures that created NFTs are unique, verifiable, and securely stored on the blockchain.

API Endpoint

/near_mint_nft_meta_tx

API Method

POST

API Parameters

{

"owner_id": "kenobijontest.testnet",

"num_to_mint":"1" // How many nft want to mint for this data

"metadata": {

"title": "XR Sports NFT",

"description": "Badge NFT showing you are apart of the XR Sports family.",

"media": "storage/XR.jpeg",

"reference": "https://example.com/path-to-nft-metadata.json",

"media_hash": "WZ9czh5fFbftkT0zpWGeAtQF+ONrDcsuOWUMgrJ3eq0=",

"copies": 1,

"extra": "extra info",

"reference_hash": "WZ9czh5fFbftkT0zpWGeAtQF+ONrDcsuOWUMgrJ3eq0="

}

}

Response

{

"success":true,"txHash":"8vFcmsT5b9GjaZuBsbRhtL4rgxt74gsTMH8EbBstX8VY"

}

Transfer

The Transfer API facilitates the smooth and secure transfer of NFT ownership between accounts. It ensures a trustworthy exchange of ownership while preserving the integrity of the NFT's historical data and associated metadata.

This API handles the transfer process with precision, guaranteeing that ownership changes are accurately recorded on the blockchain ledger, thereby maintaining transparency and reliability.

API Endpoint

/near_transfer_nft_meta_tx

API Method

POST

API Parameters

{

"owner_id": "kenobijontest.testnet",

"token_contract": "activelink.mintspace2.testnet",

"token_id": "26",

"receiver_id": "activelink.testnet"

}

Response

{

"success":true,"txHash":"8vFcmsT5b9GjaZuBsbRhtL4rgxt74gsTMH8EbBstX8VY"}

}

Get Owned Tokens

The "Get Owned Tokens" API call retrieves a user's owned tokens within a Activelink ecosystem. This call typically returns a list of the tokens held by the user, along with relevant information such as token name, balance, and possibly additional metadata. It's a useful function for applications dealing with tokenized assets, decentralized finance (DeFi) platforms, or any system utilizing blockchain-based tokens.

It encompasses functionalities for handling transactions, updating ownership records, and ensuring the secure transfer of funds according to predefined smart contract terms. This ensures a seamless and reliable purchasing experience for users.

API Endpoint

/near_view_owned_nfts

API Method

POST

API Parameters

{

"owner_id": "xrvikash.testnet"}

}

Response

{

"success":true,"data":[{"lastTransferredAt":null,"tokenId":"213","contractId":"activelink.mintspace2.testnet","baseUri":"https://arweave.net","metadataId":"activelink.mintspace2.testnet:8b32288834ff8a1e6065c3ee69d0eb72","title":"Communication Badge","minter":"xrvikash.testnet","media":"https://storage.googleapis.com/xr_near_170117114/marketplace/nfts/433da46d411497f21d68eb51d219dae6.png","document":null,"animationUrl":null},{"lastTransferredAt":null,"tokenId":"199","contractId":"activelink.mintspace2.testnet","baseUri":"https://arweave.net","metadataId":"activelink.mintspace2.testnet:23e926c8bba6998f9419edb137737753","title":"test vikash2","minter":"xrvikash.testnet","media":"https://storage.googleapis.com/xr_near_170117114/marketplace/nfts/b957ae9a3d6fdce684f7f63d6b0b4929.jpg","document":null,"animationUrl":null},{"lastTransferredAt":null,"tokenId":"198","contractId":"activelink.mintspace2.testnet","baseUri":"https://arweave.net","metadataId":"activelink.mintspace2.testnet:e0f18556ea6c5d789d1e0687fb988c73","title":"test vikash","minter":"xrvikash.testnet","media":"https://arweave.net/53Mobek4iTMhzUeJ-PGLjEwTCxLrUCMr1Q_j49sootE","document":null,"animationUrl":null}]

}

View NFTs

Check if the user owns an NFT from a specific smart contract to enhance discoverability and interaction with digital assets.

Users can explore NFTs owned by themselves, those listed for sale, or part of the broader Activelink collection. This function facilitates easy navigation and interaction with digital assets within the marketplace.

API Endpoint

/near_is_nft_owner

API Method

POST

API Parameters

{

"owner_id": "xrvikash.testnet", "contract_address": "activelink.mintspace2.testnet"

}

Response

{

"success":true,"data":{"earnings_aggregate":{"aggregate":{"sum":{"amount":null},"count":0}},"token":[{"metadataId":"activelink.mintspace2.testnet:23e926c8bba6998f9419edb137737753","nftContractId":"activelink.mintspace2.testnet","minter":"xrvikash.testnet","title":"test vikash2","media":"https://storage.googleapis.com/xr_near_170117114/marketplace/nfts/b957ae9a3d6fdce684f7f63d6b0b4929.jpg","reference":"https://metadata-url.com/metadata.json","baseUri":"https://arweave.net","mintedTimestamp":"2024-03-19T04:45:42.953271","animationUrl":null,"mediaFromRef":null,"listings":[]},{"metadataId":"activelink.mintspace2.testnet:8b32288834ff8a1e6065c3ee69d0eb72","nftContractId":"activelink.mintspace2.testnet","minter":"xrvikash.testnet","title":"Communication Badge","media":"https://storage.googleapis.com/xr_near_170117114/marketplace/nfts/433da46d411497f21d68eb51d219dae6.png","reference":"https://metadata-url.com/metadata.json","baseUri":"https://arweave.net","mintedTimestamp":"2024-03-19T09:00:10.878374","animationUrl":null,"mediaFromRef":null,"listings":[]},{"metadataId":"activelink.mintspace2.testnet:e0f18556ea6c5d789d1e0687fb988c73","nftContractId":"activelink.mintspace2.testnet","minter":"xrvikash.testnet","title":"test vikash","media":"https://arweave.net/53Mobek4iTMhzUeJ-PGLjEwTCxLrUCMr1Q_j49sootE","reference":"3QN2LFyoBnAQO_q9l8i7C_lDRsXkokNthurlaeyQ2rA","baseUri":"https://arweave.net","mintedTimestamp":"2024-03-18T12:12:37.876735","animationUrl":null,"mediaFromRef":"https://arweave.net/53Mobek4iTMhzUeJ-PGLjEwTCxLrUCMr1Q_j49sootE","listings":[]}],"tokens_aggregate":{"aggregate":{"count":3}}},"isOwner":true

}

Last updated