Using Onramp with https
Query Params
env
string
Execute request on either staging or prod
mode
string
For using contract interaction mode, value checkout|deposit
walletAddress
string
Address of the destination wallet
exchangeScreenTitle
string
title in header of widget
aarcApiKey
string
Api key obtained from Aarc to make this request
For Contract interaction mode
env
string
Execute request on either staging or prod env.
mode
string
For using contract interaction mode, value checkout|deposit
walletAddress
string
Address of the destination wallet
smartContractAddress
string
Address of the smart contract
aarcApiKey
string
Api key obtained from Aarc to make this request
estimatedGasLimit
number
Gas limit for the transaction
sourceTokenData
SourceTokenData
JSON.stringify Token Data object containing the token code and amount
cryptoCurrencyData
CryptoCurrencyData
JSON.strinfigy Object containing details for onramp
callData
BytesLike
Calldata for onramp transaction
Create an event listner for listening to the onramp events
Event Types
ONRAMP_WIDGET_CLOSE
ONRAMP_ORDER_SUCCESSFUL
ONRAMP_ORDER_FAILED
Last updated
Was this helpful?