diff --git a/doc/near/bts.md b/doc/near/bts.md new file mode 100644 index 000000000..026f9f6a6 --- /dev/null +++ b/doc/near/bts.md @@ -0,0 +1,50 @@ +## Requirements + +* **NEAR CLI** + The NEAR [Command Line Interface (CLI)](https://github.com/near/near-cli) is a tool that enables to interact with the NEAR network directly from the shell. Under the hood, NEAR CLI utilizes the NEAR [JavaScript API](https://github.com/near/near-api-js) + + + #### Installation + ```console + npm install -g near-cli + ``` +* **NEAR Wallet** + - Testnet: https://wallet.testnet.near.org/ + - Mainnet: https://wallet.near.org/ + +* **Authorize CLI** + ```console + near login + ``` +## API +*Path to BTS Rust ReadMe* + +## Usage + +**Transfer NEAR** +- Deposit +```console +NEAR_ENV=testnet near call deposit --amount --accountId +``` +- Transfer +```console +NEAR_ENV=testnet near call transfer '{"coin_name": "", "destination": "btp:///
", "amount": ""}' --gas 300000000000000 --accountId +``` + +**Receiving Cross-Chain Native Coins** +- Withdraw +```console +NEAR_ENV=testnet near call withdraw '{"coin_name": "", "amount":""}' --amount 0.000000000000000000000001 --gas 300000000000000 --accountId +``` + +**Reclaiming Failed Transfer** +- Reclaim +```console +NEAR_ENV=testnet near call reclaim '{"coin_name": "", "amount":""}' --amount 0.000000000000000000000001 --gas 300000000000000 --accountId +``` + +## Environment + +- [Testnet](./testnet.md) + + diff --git a/doc/near/testnet.md b/doc/near/testnet.md new file mode 100644 index 000000000..b6df28740 --- /dev/null +++ b/doc/near/testnet.md @@ -0,0 +1,10 @@ +## Testnet + +### BTS +bts.iconbridge.testnet +### Registered Tokens + +| Coin/Token|Coin Name| Network| Denomination| NEP141 Contract | +|:---------|:--------|:--------|:------------|:----------| +| NEAR | btp-0x1.near-NEAR | 0x1.near | 24 | N/A | +| ICX | btp-0x2.icon-ICX | 0x2.icon | 18 | btp-icx.bts.iconbridge.testnet |