How to Test My Functions on Binance Testnet

Published on 2022-05-17 09:07

After developing your functions, you can use the Binance Spot Testnet to test your use cases for free. The Binance Spot Testnet is subject to the TestNet Terms of Use. Please read it carefully before proceeding.

How to test on the Spot Testnet?

1. Log in to the Binance Spot Test Network by clicking [Log In with GitHub].  

image

2. You will be redirected to the GitHub website. Log in with your account or click [Create an account] if you don’t have a GitHub account yet.

image

3. Click [Authorize binance-exchange] to allow Binance Spot Testnet access.

image

4. You will be redirected back to the Spot Test Network page. Here you can see your testing API Keys. 

image
  • If you don’t have any API Keys, click [Generate HMAC_SHA256 Key] or [Register Public Key] and follow the instructions.
  • In case of HMAC_SHA256, please keep your Secret Key secure as it will not be shown again. Do not share this key with anyone. If you forget your Secret Key, you must click [Revoke] to delete the API and generate a new one.

5. Follow the official Spot API documentation and replace the URLs of the endpoints with the “Spot Test Network URLs” values found in the Spot Testnet FAQ.

6. You can now start testing on the Binance Spot Test Network.

  • All users registered on the Spot Test Network will automatically receive a balance in different assets.
  • Please note that these are not real assets and can only be used on the Spot Test Network. They cannot be transferred in or out of the Spot Test Network. 
  • The Spot Test Network resets periodically, including all open and executed orders. After the reset, your asset balance will be automatically refreshed. Please note that we normally reset the Testnet Network once per month without prior notice.

For more information regarding API tutorials, please refer to: