DEX.AG
Search…
registerStatusHandler
Register to receive status messages as the client validates and executes the trade
registerStatusHandler
1
sdk.registerStatusHandler((status, data)=>{
2
console.log(status, data)
3
});
Copied!
Status
Description
init
Starting validation
request_wrap
WETH is required (Radar Relay). Wrapping WETH before continuing
send_wrap
Waiting for wrap to finish mining (data param contains tx hash)
mined_wrap
Wrap is finished mining (data param contains tx hash)
allowance
Set a token allowance for the DEXes contract
send_approve
Token allowance is mining
mined_approve
Approve tx is finished mining (data param contains tx hash)
send_trade
Waiting for trade to finish mining (data param contains tx hash)
mined_trade
Trade tx is finished mining (data param contains tx hash)
failed
Trade tx failed (data param contains tx hash)
web3_undefined
Web3 wallet is not enabled
balance
Not enough funds to execute trade
rejected
User clicked "reject" in the checkout process
bancor_notice
Executing trade on bancor with the gas restriction / feature
bad_tx
The tx is not valid and didn't pass final checks
connect_rejected
The user didn't allow web3 access
network
The user needs to switch to Main Ethereum network
Last modified 1yr ago
Copy link