Qote, swap, how to put 0.5 amount in

Hi, i send quote or swap url like :
https://api.1inch.exchange/v3.0/1/approve/spender
https://api.1inch.exchange/v3.0/1/approve/calldata?tokenAddress=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee&amount=1

and response is :
{data: “0x095ea7b300000000000000000000000011111112542d85b3…0000000000000000000000000000000000000000000000001”, gasPrice: “99090000000”, to: “0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee”, value: “0”}
main.js:301 {address: “0x11111112542d85b3ef69ae05771c2dccff4faa26”}

but if i put 0.1 in amount i get:

{statusCode: 500, message: “Internal server error”}

how to use values like 0.5 or 0,5 eth?
in quote i get res:
{statusCode: 400, message: “amount should be a number string”, error: “Bad Request”}

Regards!
Mario

1 Like

ok, found solution :slight_smile:

1 Like