Asset price location for open sea plugin

  • when getting asset, where can i find the price ?

What is the output that you have?

1 Like
  1. animation_original_url: null
  2. animation_url: null
  3. asset_contract: {address: ‘0x86357a19e5537a8fba9a004e555713bc943a66c0’, asset_contract_type: ‘non-fungible’, created_date: ‘2021-10-03T08:04:56.598515’, name: ‘Neo Tokyo: Identities’, nft_version: ‘3.0’, …}
  4. background_color: null
  5. collection: {banner_image_url: ‘https://lh3.googleusercontent.com/_GM8f8ete5DWjl55…11OipMS8ROYZF549DIQYCm53nC0hIvvANXQEiR6ikvC=s2500’, chat_url: null, created_date: ‘2021-10-04T15:14:32.376341’, default_to_fiat: false, description: ‘Ciphers decoding…\r\nPreparing bytestream headers…ry linked list unpacked\r\nWelcome to the New World’, …}
  6. creator: {user: {…}, profile_img_url: ‘https://storage.googleapis.com/opensea-static/opensea-profile/22.png’, address: ‘0xa8da6166cbd2876ccde424ee2a717c355be4702b’, config: ‘verified’}
  7. decimals: 0
  8. description: “Welcome to Neo Tokyo, citizen. Are you prepared to fulfill your destiny?”
  9. external_link: null
  10. id: 65909438
  11. image_original_url: null
  12. image_preview_url: “https://storage.opensea.io/files/ece31a3adc329fc2b8f4497521f5236c.svg
  13. image_thumbnail_url: “https://storage.opensea.io/files/ece31a3adc329fc2b8f4497521f5236c.svg
  14. image_url: “https://storage.opensea.io/files/ece31a3adc329fc2b8f4497521f5236c.svg
  15. is_presale: false
  16. last_sale: null
  17. listing_date: null
  18. name: “Character #2254
  19. num_sales: 0
  20. owner: {user: {…}, profile_img_url: ‘https://storage.googleapis.com/opensea-static/opensea-profile/24.png’, address: ‘0xd573b7165b4f0e07d413b40247eb3eeeb6506cee’, config: ‘’}
  21. permalink: “https://opensea.io/assets/0x86357a19e5537a8fba9a004e555713bc943a66c0/2254
  22. sell_orders: null
  23. token_id: “2254”
  24. token_metadata: "data:application/json;base64,eyJuYW1lIjogIkNoYXJh
  25. top_bid: null
  26. traits: (13) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}]
  27. transfer_fee: null
  28. transfer_fee_payment_token: null
  29. [[Prototype]]: Object

Maybe it doesn’t have a price this one in particular, it says that it was no sale or listing

1 Like

but all of Rinkeby assets have the price 0

Mr. @cryptokid ,

now i m in the testnet , response doesn’t have a price
befor migrating to the mainnet i want to locate the price

thank you

The price is returned by OpenSea, therefore if the price shown is 0 probably means that the NFT was never sold on Opensea.

befor migrating to the mainnet i want to locate the price

You can use ‘mainnet’ as network and fetch an asset that you are sure has been already sold on OpenSea.

Try this: https://opensea.io/assets/0x2a281305a50627a22ec3e7d82ae656adfee6d964/308

The price returned is correct

Screenshot 2021-11-16 at 10.47.27

1 Like

that’s what i didn’t understand ( 50000000000000 ) is not the not the correct price

Mr. @dani please can you explain to me ?

maybe is this price (that 50000000000000000 = 0.05 ETH):

1 Like

but is 0.05ETH = 500000000000000000 ?
how can be

that prices is in WEI, and 1 ETH = 1000000000000000000 WEI (18 decimal places)

2 Likes

ah you’re right ,thank you !