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
- Host: GitHub
- URL: https://github.com/mingderwang/ts-node-etherspot
- Owner: mingderwang
- Created: 2021-06-30T05:09:07.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-07-27T14:10:21.000Z (almost 4 years ago)
- Last Synced: 2025-03-25T07:51:16.041Z (over 1 year ago)
- Language: TypeScript
- Size: 1.2 MB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```
