Comment on page
Using Crosschain API
This API will let you swap assets between different chains, this is the current status:
- This version allow you to swap BUSD in Ethereum into BUSD in Binance, we thought this is a good first step because it will serve as a vehicle between any assets between the two networks.
- Testnets required for running this versions are:
- Right now you see two folders,
testing. The former contains the webserver that must be started to call the API endpoints locally in you machine (read this for more detailed instructions), the latter contains scripts in
postmanthat can be used to test the endpoints once you have the webserber running. It also has examples of how to make calls to the API.
- You will need to set
.envfiles in both folders, we are adding samples for those files (they are called
env_file), so you can just go ahead and rename them to
.env. You will also need to add your private key to the
.envfile in the testing folder if you plan to use the
.jsfile. If you plan to use postman, you will need to paste it into the workspace, so make sure that you create it outside the repo. In any case we encourage you to add
.envfiles to the
.gitignoreand never paste you private keys in the code.