Skip to content

Instantly share code, notes, and snippets.

@0xIslamTaha
Last active June 24, 2019 11:22
Show Gist options
  • Save 0xIslamTaha/5ded77ff4af647f28dcb413f908a0d99 to your computer and use it in GitHub Desktop.
Save 0xIslamTaha/5ded77ff4af647f28dcb413f908a0d99 to your computer and use it in GitHub Desktop.
```python
JSX> tft_client = j.clients.tfchain.new(name='tft_client', network_type='TEST')
Mon 24 10:45:50 BCDB.py - 465 - bcdb:bcdb : load model:jumpscale.tfchain.client
JSX> wallet = tft_client.wallets.new('wallet001', seed='slam table target hand drift aim brief fit dizzy flash engine attend oil steel manage oblige mercy duck razor steak crash essay coin stone')
Mon 24 10:45:56 BCDB.py - 465 - bcdb:bcdb : load model:jumpscale.tfchain.wallet
JSX> wallet.balance
wallet balance on height 304409 at 2019/06/24 10:45:24
3457.95 TFT available and 0 TFT locked
JSX> wallet.capacity.reserve_zos_vm(email="[email protected]", threebot_id="my3bot001.example", location="freefarm", size=1)
Mon 24 10:46:26 BCDB.py - 465 - bcdb:bcdb : load model:jumpscale.threefold_directory.client
Mon 24 10:46:49 BCDB.py - 465 - bcdb:bcdb : load model:jumpscale.gedis.client
Mon 24 10:46:49 GedisClient.py - 138 - j.clients.gedis:gedisclient : redisclient: notary.grid.tf:5000
Mon 24 10:46:50 GedisClient.py - 102 - j.clients.gedis:gedisclient : cmds for actor:notary_actor
TransactionSendResult(transaction=transaction v1 6fa377c8c6282cc0ed8da137d6e467506f8a4060f1047ce8cc10317e52174d06, submitted=True)
JSX> wallet.balance
wallet balance on height 304418 at 2019/06/24 10:59:11
3416.2 TFT available and 0 TFT locked
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment