API Reference
Base URL
Production: https://mainnet-node.like.co
Testnet: https://node.testnet.like.co
LCD API
Please refer to x/nft
query definition and likenft query definition for most updated LCD API
Balance
queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721
/cosmos/nft/v1beta1/balance/{owner}/{class_id}
Owner
queries the owner of the NFT based on its class and id, same as ownerOf in ERC721 /cosmos/nft/v1beta1/owner/{class_id}/{id}
Supply
queries the number of NFTs from the given class, same as totalSupply of ERC721. /cosmos/nft/v1beta1/supply/{class_id}
NFTs
queries all NFTs of a given class
or owner
, choose at least one of the two, similar to tokenByIndex in ERC721Enumerable
/cosmos/nft/v1beta1/nfts
NFT
queries an NFT based on its class and id.
/cosmos/nft/v1beta1/nfts/{class_id}/{id}
Class
queries an NFT class based on its id
/cosmos/nft/v1beta1/classes/{class_id}
Classes
queries all NFT classes
/cosmos/nft/v1beta1/classes
Indexer API
Pagination params:
Param | Example | Description |
---|---|---|
key | Key of the last item of previous response for pagination, should not be used with | |
limit | The size limit of response. Default & max: 100 | |
reverse | Sorting order | |
offset | Offset of response, should not be used with |
Class API
/likechain/likenft/v1/class
Param | Example | Description |
---|---|---|
iscn_id_prefix | ISCN prefix of NFT class (if minted via ISCN) | |
account | Account of NFT class (if minted via account) | |
iscn_owner | Query classes owned via ISCN by an address | |
expand | expand NFT info |
NFT API
/likechain/likenft/v1/nft
Param | Example | Description |
---|---|---|
owner | Owner address | |
expand_classes | Expand class information |
Owner API
/likechain/likenft/v1/owner
Param | Example | Description |
---|---|---|
class_id | NFT Class ID |
Event API
/likechain/likenft/v1/event
Param | Example | Description |
---|---|---|
class_id | NFT Class ID | |
nft_id | NFT ID | |
iscn_id_prefix | ISCN ID Prefix (if minted via ISCN) | |
verbose | Expand events | |
action_type | /cosmos.nft.v1beta1.MsgSend | Filter event by action |
sender | Get all events sent by an address | |
receiver | Get all events received by an address | |
creator | Get all events of NFT Classes created (ISCN owner) by an address | |
involver | Get all events involving an address (sender OR receiver OR creator) | |
ignore_from_list | Ignore events sent from address | |
ignore_to_list | Ignore events sent to address |
Ranking API
/likechain/likenft/v1/ranking
Request Params
Param | Example | Description |
---|---|---|
creator |
| The current owner of the ISCN |
collector |
| The current owner of NFT |
type |
| The |
stakeholder_id |
| The |
stakeholder_name |
| The |
created_after |
| Get NFT class created after this UNIX second timestamp |
created_before |
| Get NFT class created before this UNIX second timestamp |
sold_after |
| Rank NFT class base on sales after this UNIX second timestamp |
sold_before |
| Rank NFT class base on sales before this UNIX second timestamp |
include_owner |
| Whether to include owner of ISCN when counting sold_count |
ignore_list |
| The addresses to ignore when counting sold count |
order_by | total_sold_value/sold_count |
Result is order by the number of NFTs not owned by creator nor ignore_list
Example Response
/likechain/likenft/v1/ranking?ignore_list=like17m4vwrnhjmd20uu7tst7nv0kap6ee7js69jfrs&limit=1
Note: Currently only like.co API can report the latest price. price
in the response is always 0. Please refer to like.co API documentation for price information
Social Graph API
Get Collectors
/likechain/likenft/v1/collector
Param | Example | Description |
---|---|---|
creator |
| Required. Account address of ISCN owner |
ignore_list | The addresses to ignore | |
include_owner | Whether to include owner of ISCN | |
price_by | class/nft | |
order_by | price/count |
Get Creators
/likechain/likenft/v1/creator
Param | Example | Description |
---|---|---|
collector |
| Required. Account address of NFT owner |
ignore_list | The addresses to ignore | |
include_owner | Whether to include owner of ISCN | |
price_by | class/nft | |
order_by | price/count |
Result is order by count of NFT collections.
Example Response
/likechain/likenft/v1/collector?creator=like13f4glvg80zvfrrs7utft5p68pct4mcq7t5atf6
Example UI
https://likecoin.github.io/likecoin-nft-dashboard/
Last updated