I followed the instructions in “Lambda NodeJS Express API” in the Moralis document Web3DataAPI-Integrations-AWS Lambda, but in the local test (serverless offline start), I used Postman to test the API I tested the API using Postman on a local test (serverless offline start) and got http://localhost:3000では “Hello from root!”, but the endpoint getNativeBalance(http://localhost:3000/getNativeBalance?address=*& chain=0x1) shows
ANY /getNativeBalance (λ: api)
Hey @Eitoku,
I’ve just checked back the tutorial and looks like the params are body params instead of path params based on the code, you should instead have address
and chain
in the body.
If you try to call it that way as a path, then likely in the server address
will have null
value
Hi, YosephKS.
I changed body to query and it works!
Thank you.
1 Like
Perfect Glad that it helped! @Eitoku
If you have any other issues, feel free to open a new thread.
You’re welcome to come back and ask us anything, we’re available 24/7 around the clock to help you out~
Cheers