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.