Skip to content

Instantly share code, notes, and snippets.

@shibdev

shibdev/aboba.py Secret

Created September 28, 2024 01:03
Show Gist options
  • Save shibdev/ac1c112307a07816ebea62851f63da64 to your computer and use it in GitHub Desktop.
Save shibdev/ac1c112307a07816ebea62851f63da64 to your computer and use it in GitHub Desktop.
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