Tiramisu wallet API client
This is a Python client for tiramisu wallet API that allows for programmatic trading, minting, sending and receiving of Taproot Assets.
Installation
Tiramisu wallet client is available as a package on PYPI and can be installed with pip:
pip install tiramisu_wallet_client
Usage
The code below demonstrates how to perform disfferent actions using tiramisu wallet.
from tiramisu_client import TiramisuClient
import random
# Please go to https://testnet.tarowallet.net/walletapp/
# and create an account then populate your credentials
USER_NAME="FILL_THIS_OUT"
PASSWORD="FILL_THIS_OUT"
print("Create client object")
client = TiramisuClient(username=USER_NAME,password=PASSWORD)
print("List all wallet balances")
print( client.balances() )
print("List all balances of NFTs in the wallet")
print( client.balances_nft() )
print("Get the BTC balance in wallet:")
print( client.get_btc_balance() )
print("List assets available")
assets=client.assets()
print( assets )
print("Get first asset and print it")
asset=client.asset(4)
print( asset )
print("List wallet transactions")
print( client.transactions() )
print("List all currency asset listings on exchange")
listings = client.listings()
print( listings )
print(f"Buy asset '{listings[4]['currency']}'")
print( client.buy_taproot_asset_asset_wait_finished(asset=listings[4]['currency'], amount=1) )
print("Balances after purchase:")
print( client.balances() )
print("List all NFT asset listings on exchange")
listings_nfts = client.listings_nfts()
print( listings_nfts )
print("Show all listings made from the current wallet")
print( client.listings_my() )
print("transactions_receive_btc")
transaction_inbound_btc = client.transactions_receive_btc_get_invoice(amount=10000, description='test BTC deposit')
print(f"send BTC to this address to top-up your BTC balance: {transaction_inbound_btc['invoice_inbound']}")
invoice_inbound_taproot_asset = client.transactions_receive_taproot_asset(amount=1, asset=asset['id'], description=f"receive asset {asset['id']}")
print(f"send Taproot asset {asset['name']} with ID {asset['id']} to this address to top-up your TAP balance: {invoice_inbound_taproot_asset}")
tn = random.randint(1, 1000)
print("Minting a new currency and waiting for minting to finish.")
new_asset = client.assets_mint_wait_finished(acronym=f'TC{tn}', name=f'Testasset{tn}', description=f'Test asset {tn}', supply=1234, file_path='test_image.jpg')
print("Newly created asset")
print(new_asset)
print("Listing the currency on an exchange...")
client.list_asset(asset=new_asset['id'])
print("Show all listings made from the current wallet")
print( client.listings_my() )
Taproot Assets
Taproot assets is a protocol operating on Bitcoin Blockchain and the Bitcoin lightning network. Taproot assets protocol (TAP) represents alternative crypto currencies and non-fungible tokens (NFTs) allowing for minting, sending and receiving of these assets. Taproot assets protocol is being developed by the company lightning labs.
Tiramisu wallet
Tiramisu wallet is a GUI that allows for simple access to Taproot assets protocol. To see the full documentation for the API visit our swagger documents.
Metadata
Release files for tiramisu-wallet-client 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tiramisu_wallet_client-0.0.9.tar.gz | 666.1 kB | Without provenance | Details for tiramisu_wallet_client-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tiramisu_wallet_client-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for tiramisu_wallet_client-0.0.9-py3-none-any.whl |
Total release size: 764.2 kB
Release files / tiramisu_wallet_client-0.0.9.tar.gz
| Download URL | tiramisu_wallet_client-0.0.9.tar.gz |
|---|---|
| Size | 666.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff1d082e3b0b2586bb15c6b2aaeb087855cebc517b1f138d9a2e7d3102f3a009
|
|
BLAKE2b-256 checksum How to use checksums |
065aedcc13d7bf0fbae506fcbe481a5b02fbc0c698bf0088f8a1306d350dd0c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.19
|
Release files / tiramisu_wallet_client-0.0.9-py3-none-any.whl
| Download URL | tiramisu_wallet_client-0.0.9-py3-none-any.whl |
|---|---|
| Size | 98.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63e8e3b850de4cbb7a2298f46ab0cc6502ec7ffe533b81bf95022445a0f93938
|
|
BLAKE2b-256 checksum How to use checksums |
d7e7c2e1f3eed7590c5fc77919279ffb084486b43a4e5a3e2c1e77a930e0647a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.19
|
Security for tiramisu-wallet-client 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.