Market Functions
USD to Tokens
Calculate how many tokens will be received for a given USD amount
GET
Calculate USD to tokens conversion
This is a smart contract view function. The curl example shown is for illustration. To call this function, use web3 libraries (ethers.js, viem, web3.py) or JSON-RPC directly.
Path Parameters
Address of the market contract
Pattern:
^0x[a-fA-F0-9]{40}$Query Parameters
USD amount to convert
Required range:
x >= 1True if buying Based, false if buying Cringe
Calculate USD to tokens conversion