-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add v5r1 support #44
base: master
Are you sure you want to change the base?
add v5r1 support #44
Conversation
This looks like it might be related to W5, am I right? Weird how the versioning is so confusing on the consumer/end-user's side. Presumably the next iteration would be W6; if it's not we need to start marching on the streets and demand answers. |
I'm not so deep into the TON understanding, but I tried to send Jettons using your code for PS. Yes, I use Lib versions:
Here is the code: JETTON_MASTER = 'EQBjVEEbSy59Tx5mKB-f1FNxgVE8yu6Pv5bTcQZxM17zrG9N'
DESITNATION_ADDRESS = 'kQAWYoF6lJd_Iom0E2XErBFXbq5143F7JfebDKEenX8jUW57'
MNEMONICS = [...]
API_KEY = ""
async def test_send_jetton():
from TonTools.Contracts.Wallet import Wallet
from TonTools.Contracts.Jetton import Jetton
client = TonCenterClient(
key=API_KEY,
orbs_access=True,
testnet=True
)
jetton = Jetton(JETTON_MASTER, provider=client)
my_wallet = Wallet(
provider=client,
mnemonics=MNEMONICS,
version="v5r1")
response = await my_wallet.transfer_jetton(
destination_address=DESITNATION_ADDRESS,
jetton_master_address=jetton.address,
jettons_amount=500,
fee=0.16)
response_dict = await response.json()
pprint(response_dict)
if __name__ == '__main__':
import asyncio
asyncio.run(test_send_jetton()) The error
|
I'll take a look,wil update later time |
🚀 |
2 similar comments
🚀 |
🚀 |
add V5R1 support