Skip to content

Commit

Permalink
changelog added
Browse files Browse the repository at this point in the history
  • Loading branch information
Grommash9 committed Jul 6, 2024
1 parent f83ab52 commit e8865dd
Showing 1 changed file with 29 additions and 13 deletions.
42 changes: 29 additions & 13 deletions examples/ton_bulk_tx_sending.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,35 @@
wallet_version=WalletVersionEnum.hv2,
)

# jetton_wallet_address = asyncio.run(
# ton_client.get_jetton_wallet_address(
# "0QDlTHD4T79EyT96gkYNKd3iuRd2__6gGh2PCKpU57jSWbVp", "kQAiboDEv_qRrcEdrYdwbVLNOXBHwShFbtKGbQVJ2OKxY_Di"
# )
# )

# print("jetton_wallet_address", jetton_wallet_address)

balance = asyncio.run(
ton_client.get_jetton_wallet_balance(
"0QAEhA1CupMp7uMOUfHHoh7sqAMNu1xQOydf8fQf-ATpkbpT",
"kQAiboDEv_qRrcEdrYdwbVLNOXBHwShFbtKGbQVJ2OKxY_Di",

recipients_list = [
{
"address": "0QAEhA1CupMp7uMOUfHHoh7sqAMNu1xQOydf8fQf-ATpkbpT",
"amount": 1,
"payload": "Hello, recipient 1!",
"send_mode": 1,
},
{
"address": "UQDlTHD4T79EyT96gkYNKd3iuRd2__6gGh2PCKpU57jSWQ7j",
"amount": 10,
"payload": "Hello, recipient 5!",
"send_mode": 1,
},
]

# You should deploy the wallet before you will be able to start using it, wallet should have balance for that to deploy itself!

tx_id = asyncio.run(
ton_client.deploy_wallet(
"ancient reason board glue post sea write shrimp feel motion win away pizza sword mobile ethics film lawsuit nephew cloud crash okay hero step"
)
)

tx_id = asyncio.run(
ton_client.send_bulk(
"ancient reason board glue post sea write shrimp feel motion win away pizza sword mobile ethics film lawsuit nephew cloud crash okay hero step",
recipients_list,
)
)

print("balance", balance)
print("tx_id", tx_id)

0 comments on commit e8865dd

Please sign in to comment.