An open API service indexing awesome lists of open source software.

https://github.com/mingderwang/ts-node-etherspot

simple cli for dapp
https://github.com/mingderwang/ts-node-etherspot

Last synced: about 1 year ago
JSON representation

simple cli for dapp

Awesome Lists containing this project

README

          

# learn etherspot by examples

- sample examples are git cloned from https://github.com/pillarwallet/etherspot-sdk-examples.git

## transfer ethers

- refer to: 03-submit-eth-transaction.ts

### build & run

```
yarn
```

```
yarn 03-transfer-eths
```

> make sure you have to fund enough ETHs in your "Smart Wallet Contract" respective to your sdk (key) account, where is
> [0xbf4f2d1fdaf898df5d9a53a9a5019856db88aa1b](https://ropsten.etherscan.io/address/0xbf4f2d1fdaf898df5d9a53a9a5019856db88aa1b)

> check with the balance of your receiver account. https://ropsten.etherscan.io/address/0x940d89BFAB20d0eFd076399b6954cCc42Acd8e15#internaltx

## transfer tokens

- refer to: 04-submit-token-transaction.ts
after batch complete, you can check your allownce for receiver on etherscan as follow;

> make sure you have to fund enough Tokens in your "Smart Wallet Contract" respective to your sdk (key) account, where is 0xbf4f2d1fdaf898df5d9a53a9a5019856db88aa1b

> actually this batch tranfer is powerful when you need to transfer token or ETHs to many recipients at a time in one smart contract call.

### build & run

```
yarn
```

```
yarn 04-transfer-tokens
```

![](./images/04-demo-check-result.png)