Skip to main content

agton-jetton

import os
from agton.ton import ToncenterClient, Address, to_nano, comment
from agton.jetton import JettonMaster
from agton.wallet import WalletV3R2

mnemonic = os.environ["WALLET_MNEMONIC"]
provider = ToncenterClient(net="testnet") # pass api_key=... if you have one

wallet = WalletV3R2.from_mnemonic(provider, mnemonic)
jetton_master = JettonMaster(provider, Address.parse("kQBLdsCM9ksHe22vgPMBN7OScP6z6w8xAsM5AuHldrDT9EwR"))
jetton_wallet = jetton_master.get_jetton_wallet(wallet.address)

message = jetton_wallet.create_jetton_transfer(
    value=to_nano(0.5),                  # native TON to cover forwarding fees
    query_id=0,
    amount=to_nano(777),                 # jetton amount
    destination=wallet.address,
    response_destination=wallet.address,
    forward_amount=to_nano(0.1),
    forward_payload=comment("agton"),
)

wallet.send(message)

Metadata

Release files for agton-jetton 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agton-jetton 0.2.5
File Size Uploaded Provenance
agton_jetton-0.2.5.tar.gz 5.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agton-jetton 0.2.5
File Interpreter ABI Platform
agton_jetton-0.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 14.3 kB

Release files / agton_jetton-0.2.5.tar.gz

Download URL agton_jetton-0.2.5.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d82a88e3d28bfd2995a8e1d0d621e53989b05565137c6ec29bd2685f3fe35998
BLAKE2b-256 checksum
How to use checksums
7ecb1a12873791c1dfd99c04ccb8e8a21221729d2e65abeda3b063a72906282b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / agton_jetton-0.2.5-py3-none-any.whl

Download URL agton_jetton-0.2.5-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c845474dfeef8ef80265d8acce9a2f3c4db00aad6a48b4719a508363171d58a
BLAKE2b-256 checksum
How to use checksums
e6bc748ba2d4bfba99c132b17e5eaf18285c99390950b76967ed12c4d0ab0352
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Security for agton-jetton 0.2.5

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page