Token
In most cases, your code will need to interact with tokens. The SDK makes it easy to verify that the token is usable and that Dexible smart contract has been granted the appropriate spend allowance.
It is very important that you perform a lookup on each token you intend to use. The lookup will verify that the token address you are using is valid. You can easily "verify" the token with Dexible to make sure Dexible will allow you to trade the token.
Check Token Validity
The following code uses Dexible to verify that the token is usable on the platform.
Increase Spending
The example above illustrated how easy it is to increase spending allowance for a token using the SDK. As mentioned earlier, we recommend increasing spending to a level you feel comfortable with but at least enough to cover the cost of the order input amount.
Last updated