Token generation
Note: To utilize this endpoint, it is mandatory for the partner to have their AppID whitelisted by the Onramp team. Please contact the Onramp team to get your AppID whitelisted and gain access to this functionality.
This API endpoint allows you to generate a token for initiating the sell transaction of a specified quantity of cryptocurrency. The token can be used for further interactions with the sell order endpoint.
POST
api.onramp.money/onramp/api/v2/sell/transaction/generateToken
Request Body
Name | Type | Description |
---|---|---|
messsageToSign* | String | The message to be signed by the Partner/wallet holder |
appId | String | appId -> App Id of the merchant/Partner. |
quantity* | String | quantity of cryptocurrency that is expected to be received |
walletAddress* | String | Onchain wallet address to which the crypto was withdrawn to |
signedMessage* | String | The signed message generated by the Partner/wallet holder |
chainId* | String | chainId -> denotes which chain the coin was sent on (e.g. 3 denotes MATIC20) |
coinId* | String | coinId -> Id of the coin (e.g. 54 denotes to USDT) |
note: recommended web3 version - 1.8.1
Last updated