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:
key
Key of the last item of previous response for pagination, should not be used with offset
limit
The size limit of response. Default & max: 100
reverse
Sorting order
offset
Offset of response, should not be used with key
Class API
/likechain/likenft/v1/class
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
owner
Owner address
expand_classes
Expand class information
Owner API
/likechain/likenft/v1/owner
class_id
NFT Class ID
Event API
/likechain/likenft/v1/event
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
creator
like13f4glvg80zvfrrs7utft5p68pct4mcq7t5atf6
The current owner of the ISCN
collector
like1vymrc5dxlfwff30m03prwlu08ql4vudn4lue8u
The current owner of NFT
type
CreativeWork
The contentMetadata.@type
field in ISCN
stakeholder_id
did:like:1w6es6du93xmhms60gwwtczr2p2h4cdm8r7kc0f
The stakeholders.entity.@id
field in ISCN
stakeholder_name
kin
The stakeholders.entity.name
field in ISCN
created_after
1659283200
Get NFT class created after this UNIX second timestamp
created_before
1659801600
Get NFT class created before this UNIX second timestamp
sold_after
1659283200
Rank NFT class base on sales after this UNIX second timestamp
sold_before
1659801600
Rank NFT class base on sales before this UNIX second timestamp
include_owner
true
Whether to include owner of ISCN when counting sold_count
ignore_list
like17m4vwrnhjmd20uu7tst7nv0kap6ee7js69jfrs
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
creator
like13f4glvg80zvfrrs7utft5p68pct4mcq7t5atf6
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
collector
like13f4glvg80zvfrrs7utft5p68pct4mcq7t5atf6
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