This is an example script of using the asset-transfer-api
to send USDT from Kusama Asset Hub to Shiden while using USDT to pay for fees.
Inside of index.ts there are a bunch of const
values at the top. Feel free to change the values to fit your enviornment.
There is a keyphrase.txt
file which stores your seed phrase locally. Please replace the placeholder text in there with your seed phrase
To run the script - Run:
$ yarn install
$ yarn start