validate

Validates the client's web3 browser and performs necessary preparations to execute a trade

This function performs the following:

  • Validates the balance of the client's account

  • Sets the token allowance

  • Wraps ETH (when necessary)

  • Tracks transactions performed in this process

Due its extensive functionality this function provides, we recommend you see it in action.‚Äč

validate
sdk.validate(tx)