Questions tagged [ton]

Programming questions about The Open Network (TON) blockchain platform and smart-contract development.

The Open Network (TON) is a fully decentralized layer-1 blockchain designed by Telegram to onboard billions of users. It boasts ultra-fast transactions, tiny fees, easy-to-use apps, and is environmentally friendly.

16 questions
2
votes
1 answer

How to pass the data value from any type into a GRPC Protobuf struct in Golang?

I'm trying to parse the data from the ADNL lib by tonutils-go and deliver the data by GRPC. The data I need is structured as // struct from tonutils-go type Transaction struct { _ Magic `tlb:"$0111"` AccountAddr []byte …
Champer Wu
  • 1,101
  • 3
  • 13
  • 32
1
vote
0 answers

Check TON Proof in php

I want to check the TON proof using php. Following the documentation, I see the verification scheme: message = utf8_encode("ton-proof-item-v2/") ++ Address ++ AppDomain ++ Timestamp ++ Payload signature =…
Anton Bogomolov
  • 79
  • 3
  • 10
1
vote
0 answers

FIFTPATH tonstarter contract

Problem when exporting Fift.fif file to the tonstarter contract I tried export FIFTPATH=/Users\engue\Downloads\ton-master\ton-master\crypto\fift\lib but it didnot give It was expected to be exported to the contract and then execute npm run build…
Deshaun
  • 11
  • 1
1
vote
1 answer

How can I wait for transaction to confirm using tonweb?

I'm writing a simple DApp on TON blockchain and using tonweb to interact with it. I need to send some transaction and after it confirms on chain, perform some other things in JS. Example: await ton.send('ton_sendTransaction', [{ to: 'some…
1
vote
1 answer

What's the difference between internal and external messages in TON smart contracts?

In TON blockchain, when implementing my dapp smart contract in FunC, my contract can accept both internal messages handled by recv_internal() and external messages handled by recv_external(). Which type of messages should I handle? Internal or…
talkol
  • 12,564
  • 11
  • 54
  • 64
0
votes
0 answers

Transferring TON Crystals from Tonkeeper App to Huobi via API

I'm trying to figure out how to transfer TON Crystals (TONs) from the Tonkeeper App to Huobi using their respective APIs and JavaScript. I'm relatively new to working with blockchain-related transactions. Specifically, I'd like to know the…
0
votes
0 answers

Derive hierarchically deterministic addresses on TON blockchain

Is there a way to derive hierarchically deterministic addresses from the seed mnemonic on TON wallet? Or does it only have memo id or something?
Ajay Srinivas
  • 595
  • 5
  • 16
0
votes
0 answers

When i tried to build the contract npx locklift build Getting the below error

When i tried to build the contract npx locklift build Getting the below error [ERROR] path: /home/user/venom/hello-venom/contracts/Sample.tsol, contractFile: Sample. error: /bin/sh: 1:…
0
votes
0 answers

Generate TON public/private keys using Trust Wallet

Issue I've used Trust Wallet(TW) to receive TON custom token. At the moment TW doesn't support such tokens. **Steps: ** By default TW uses 12 words seed phrase and TON wallet uses 24 words seed phrase. The entropy differs and can't be used to…
maslovsa
  • 1,589
  • 1
  • 14
  • 15
0
votes
0 answers

How to implement a transition in the Tonkeeper when sending a transaction from the webapp and back after confirmation?

How to implement a transition in the Tonkeeper when sending a transaction from the webapp and back after confirmation? I'm using a tonconnect-sdk and sending transactions as stated in the documentation: connector.sendTransaction({ validUntil:…
Pavel T.
  • 1
  • 1
0
votes
0 answers

User's TON wallet in telegram bot

How can I implement TON wallets for telegram bot in python? It is necessary that each user has his own balance. I saw an official example of a bot with a balance, but it still does not indicate how exactly to implement the user's balance. I searched…
0
votes
1 answer

How to implement a return to telegram after confirming a transaction in the Tonkeeper wallet?

How to implement a return to telegram after confirming a transaction in the Tonkeeper wallet? I'm using a tonconnect-sdk and sending transactions as stated in the documentation: connector.sendTransaction({ validUntil: Math.floor(new Date() / 1000)…
Pavel T.
  • 1
  • 1
-1
votes
2 answers

locklift error while deploying smart contract on venom network: "Error: Giver has empty contract state, check the giver address",

I was trying to deploy my smart contract on the venom devnet blockchain with this jrpc URL jrpc url but I got an error with this message Error("Giver has empty contract state, check the giver…
sam.Taher
  • 21
  • 6
-1
votes
1 answer

How to send a file to the ton storage provider?

I'm trying to send file to the ton storage provider First I generated file, using storage-daemon-cli. Command like this: new-contract-message --query-id 0 --provider
Then trying to send file, using ton-core JS SDK const…
Anon
  • 1
  • 2
-2
votes
2 answers

How can you debug a TON smart contract in FunC and print logs or dump variables?

I'm developing a smart contract for TON blockchain in FunC and I'm trying to find a bug in my code. I'm trying to debug the issue and will appreciate something like console.log() from JavaScript so I can add prints / logs in strategic places and…
talkol
  • 12,564
  • 11
  • 54
  • 64
1
2