nft_collectionFloorPrice
Get the floor price of a collection.
Through nft_collectionFloorPrice, you can fetch the floor price of the collection,
contractAddress
is necessary. What's more, you could use this API to know what marketplace has the floor price and the URL of the collection as well as the timestamp. Using this API, you could search for the floor price of collection and where can get the floor price.Supported on Ethereum.
Object
- An object with the following fields (required):contractAddress(hex string, required)
- the contract address of the collection. BlockVision currently support both ERC721 and ERC1155.
Object
- An object with the following fields:id(integer number)
- json-rpc id.jsonrpc(string)
- json-rpc version.result(object)
- an object with the following fields:nextPageIndex(integer number)
- next page index.data(array of object, defined below)
- response data.
- Object schema:
marketplace(string)
- market place.floorPrice(string)
- the collection's floor place in the market.retrievedAt(integer number)
- the corresponding timestamp when the data is retrieved.collectionUrl(string)
- the collection's url in the market.
curl
TypeScript
curl https://api.blockvision.org/v1/<api key> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"id": 1,
"jsonrpc": "2.0",
"method": "nft_collectionFloorPrice",
"params": {
"contractAddress": "0xb47e3cd837ddf8e4c57f05d70ab865de6e193BBB"
}
}'
import { BlockVisionProvider, BvNetwork } from 'blockvision.js'
// Optional parameters, but default to eth-mainnet and default api-key.
const bv = new BlockVisionProvider(BvNetwork.ETH_MAINNET)
// Access the BlockVision NFT API
bv.getNFTCollectionFloorPrice({
contractAddress: '0xb47e3cd837ddf8e4c57f05d70ab865de6e193BBB'
}).then(console.log)
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"data": [
{
"marketplace": "larva labs",
"floorPrice": "92.48",
"retrievedAt": 1658386036,
"collectionUrl": "https://larvalabs.com/cryptopunks"
}
]
}
}
Last modified 1mo ago