[SOLVED] Error with /nft/transfers endpoint

curl -X ‘GET’
‘https://deep-index.moralis.io/api/v2/nft/0x49cf6f5d44e70224e2e23fdcdd2c053f30ada28b​/lowestprice?chain=eth&days=10&marketplace=opensea’
-H ‘accept: application/json’
-H ‘X-API-Key: my key’\

return invalid hex number trade ok

@improvesf, meanwhile I found out that there is a problem with that url that you pasted, it look like it has some hidden characters next to that string: 0x49cf6f5d44e70224e2e23fdcdd2c053f30ada28b

if you copy this exact string than it should work fine

return invalid hex number in lowestprice func

I got that error only when I didn’t use the right parameter, also it can happen if you don’t refresh the page and you copied some invalid characters in that input box there before

curl -X ‘GET’
‘https://deep-index.moralis.io/api/v2/nft/0x49cf6f5d44e70224e2e23fdcdd2c053f30ada28b​/lowestprice?chain=eth&days=10&marketplace=opensea’
-H ‘accept: application/json’
-H ‘X-API-Key: my-key’\

return invalid hex number why you ok?

where do you run that?

if you paste that url in a command line you will see this: /0x49cf6f5d44e70224e2e23fdcdd2c053f30ada28b<200b>/ instead of the expected address

run in vscode
return invalid hex number

try delete all and make the query again

now nft-api GetAllTokenIds
To get the data
Metadata actually has data on OpenSea
But the result is returned by the API as null

temporary
use other api

you could try to resync the metadata

I mean get data through the interface getalltokenids
It originally existed on OpenSea include metadata,and metadata include data
but return is null in json file

sometimes OpenSea API doesn’t work to get the metadata, it could depend on chain too

you mean by chance?
not 100%?

By api getalltokenids
contract address:0x92133e21fff525b16d1edcf78be82297d25d1154
we can get metadata ,but attritutes not in metadata
why?

I got this:

amount: "1"
contract_type: "ERC721"
metadata: "{\"description\":\"8888 of 8,888 beautifully rendered 3D Non-Fungible People (NFP) PFPs algorithmically generated and rendered in breathtaking 3D. Each unique NFP portrays a powerful, self-expressive woman or non-binary person.\",\"external_url\":\"https://nfp.daz3d.com\",\"animation_url\":\"ipfs://Qmb8mf23oyyefNwJNZxKbMUi9dcEa9vn5gTFcRznU3KDFx\",\"image\":\"ipfs://Qmb8mf23oyyefNwJNZxKbMUi9dcEa9vn5gTFcRznU3KDFx\",\"name\":\"NFP #8888\"}\n"
name: "Daz3D Non-Fungible People"
symbol: "DAZNFP"
synced_at: "2022-01-05T20:54:46.195Z"
token_address: "0x92133e21fff525b16d1edcf78be82297d25d1154"
token_id: "8888"
token_uri: "https://nfp.daz3d.com/nft-api/v1/token/gen1/8888"

ok
but miss attributes in metadata
why?

Not sure what you mean by miss attributes in metadata

i mean metadata include attributes
like description in metadata

You mean this token uri has more data than is presented? That metadata should be from that token_uri