I'm trying to build a live market scraper of nbatopshot
THE PROBLEM
First of all I wanna say that I'm new to this technology and to cadence language, so 99% will be an error in the cadence code.
I've already got an API who can retrieve all the events "MomentListed" (a particular event minted when someone puts a token on the market) and right now I have the token's Id, seller's address and the price (from the event).
I have a cadence script in order to retrieve all the token metadata (such as setName, playName etc...) from the seller address and the token Id, but I get an error while sending the script.
* rpc error: code = Internal desc = failed to execute the script on the execution node execution-160241f88cbfaa0f361cf64adb0a1c9fc19dec1daf4b96550cd67b7a9fb26cd9@execution-002.mainnet4.nodes.onflow.org:3569=1000: rpc error: code = Internal desc = failed to execute script: failed to execute script at block (706ad1c305c20726d1a1848110c8e3275ffea9c82dd9dd4ac7c6386764ee5678): Execution failed:
invalid argument at index 0
I really don't know where is the problem, and also I can't understand the error message. Thanks for the time.
It's a web scraper (first version so it's not perfect), it analyze the last 50 blocks and display all the MomentListed (excluding the ones already sold).
THE GOAL
I'm trying to build a live market scraper of nbatopshot
THE PROBLEM
First of all I wanna say that I'm new to this technology and to cadence language, so 99% will be an error in the cadence code.
I've already got an API who can retrieve all the events "MomentListed" (a particular event minted when someone puts a token on the market) and right now I have the token's Id, seller's address and the price (from the event).
I have a cadence script in order to retrieve all the token metadata (such as setName, playName etc...) from the seller address and the token Id, but I get an error while sending the script.
The code:
The cadence script is:
config file:
THE ERROR
the error I have is:
I really don't know where is the problem, and also I can't understand the error message. Thanks for the time.