Open rpcerror opened 1 year ago
Yes, collecting the result field into error messages would be an improvement.
As a quick walkaround, try enabling verbose mode to see the full response.
This worked, thank you. However looking at the API response and reading current etherscan docs It seems like they have removed the erc-1155 token check functrion completely, or I must be blind as I cant find it: https://docs.etherscan.io/api-endpoints/tokens
Or maybe I am doing something wrong in my code? The error I get: {"status":"0","message":"NOTOK","result":"Error! Missing Or invalid Action name"}
Is this what you are looking for?
Yes, this is right. Something must be not right though, the request I am sending should be 100% good according to their API docs, here it is:
GET /api?action=token1155tx&address=
&apikey=but I get this error:
{"status":"0","message":"NOTOK","result":"Error! Missing Or invalid Action name"}
Do you know what might be the issue?
This is odd.
Does this endpoint need a paid plan or something?
No, it does not. 1155 transfers function is included in the free plan based on etherscan API docs. What the issue might be related to then?
I have just messaged etherscan on email, and they claim everything is fine on their end. Here's the reply:
Could you please run the request too and check if it returns an error on your side?
And let me tell you, it works fine for me via browser.
Looking forward to you reply
There is an issue with error handling while using the ERC-1155 function. With err, result or any other error type the code only logs: etherscan server: NOTOK instead of providing an actual error message.