Invalid parameters code 141 useOneInchSwap from react-moralis

Parrams:
{
“chain”: “bsc”,
“fromTokenAddress”: “0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee”,
“toTokenAddress”: “0xe9e7cea3dedca5984780bafc599bd69add087d56”,
“amount”: “7000000000000000”,
“fromAddress”: “0xc3cd0171dfdd36cb1d77efc07578b69252d65206”,
“slippage”: 1
}

Error:
Something went wrong { “message”: “Invalid parameters”, “code”: 141 }

Please help me out.

@YosephKS can you help me with this?

Hmmm sorry not entirely sure, looks all good to me :thinking: maybe @dani can help

This issue appears when I’m trying to swap native token in “fromTokenAddress”. Any idea what has to be done? @YosephKS @dani

I tested the data you provided and I was able to get the payload.
Please push your project to github and share the link, I will test it.