This is a smart contract write function. The curl example shown is for illustration. To call this function, use web3 libraries (ethers.js, viem, web3.py) or JSON-RPC directly.
Body
application/json
Amount of tokens to exchange (in wei/smallest unit)
Example:
"1000000000000000000"