sdk.registerStatusHandler((status, data)=>{console.log(status, data)});
Status | Description |
| Starting validation |
| WETH is required (Radar Relay). Wrapping WETH before continuing |
| Waiting for wrap to finish mining (data param contains tx hash) |
| Wrap is finished mining (data param contains tx hash) |
| Set a token allowance for the DEXes contract |
| Token allowance is mining |
| Approve tx is finished mining (data param contains tx hash) |
| Waiting for trade to finish mining (data param contains tx hash) |
| Trade tx is finished mining (data param contains tx hash) |
| Trade tx failed (data param contains tx hash) |
| Web3 wallet is not enabled |
| Not enough funds to execute trade |
| User clicked "reject" in the checkout process |
| Executing trade on bancor with the gas restriction / feature |
| The tx is not valid and didn't pass final checks |
| The user didn't allow web3 access |
| The user needs to switch to Main Ethereum network |