I see there is no useevm for nft floor price. How do I get around this? I have attempted to use opensea api directly to no avail. They have not issued me an apiKey
I initially followed
import Moralis from 'moralis';
try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});
const response = await Moralis.EvmApi.nft.getNFTFloorPriceByContract({
"chain": "0x1",
"address": "0x524cab2ec69124574082676e6f654a18df49a048"
});
console.log(response.raw);
} catch (e) {
console.error(e);
}
but it returns that the getNFTFloorPriceByContract is not a function.
I then try using the https://deep-index.moralis.io/api/v2.2/nft/:address/floor-price
endpoint and get token is in invalid format
error.
managed to solve it thank you