-
-
Save shibdev/ac1c112307a07816ebea62851f63da64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pytoniq import begin_cell | |
import base64 | |
ipfs_hash = input("Hash: ") | |
ipfs_data = begin_cell().store_ref(begin_cell().store_snake_string(ipfs_hash).end_cell()).end_cell() | |
message = begin_cell().store_uint(1408253530, 32).store_address(input("Address: ")).store_ref(ipfs_data).end_cell() | |
print(f'https://app.tonkeeper.com/transfer/EQCYNdc2ZjZJ7PDL_l5Yslar4pZzz0ayKeBUJTDSbzAlek1q?amount=1100000000&bin={base64.urlsafe_b64encode(message.to_boc()).decode()}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment