Reputation
Badges 5
Editor Freshman Enthusiast Supporter NewbieThe endpoint on http-api that you're looking for is likely /tryLocateTx:
https://toncenter.com/api/v2/#/transactions/get_try_locate_tx_tryLocateTx_get
When added to a liquidity pool protocol, a jetton is defined by supply and demand. If you are looking for a way to sell a jetton at a single fixed price, then you're likely looking for an ICO smart contract:
https://github.com/ton-blockchain/token-contract/blob/main/ft/jetton-minter-ICO.fc#L56
Where the amount of TON sent with the transaction is multiplied by some value of jetton to mint to the sender.
int jetton_amount = buy_amount; ;; rate 1 jetton = 1 toncoin; multiply...
Standard token contracts can be found on the main GitHub profile of the TON blockchain. You can generally look for FunC smart contracts on the TON blockchain and TON foundation profiles.
There are also some snippets that users provide, such as the FunC snippets provided by TonoxDeFi on GitHub.
Fift has some documentation on the official site:
The main repository for TON exists on GitHub, and is written in C++:
TON is a decentralized blockchain, and rarely is there a developer console for blockchains like there is in Web2 (private blockchains might have these sorts of features). Some blockchains might have third party deployment tools for smart contracts that act as infrastructure, but that's not necessary for creating a wallet. What you're likely looking for is a way to query information off of the blockchain and to send transactions, which will require an http-api endpoint. Some of these endpoints...
This is a good suggestion for a dedicated step-by-step tutorial. I imagine that the TON community will focus on this in the coming months.
Here are some resources to help with creating NFTs:
- TON-NFT-deployer: created by TON Diamonds, this is a complete project that can help the technically minded developer deploy an NFT
- Disintar: an NFT marketplace for TON. You might want to look into here if you want...
Unfortunately, there currently isn't something like the Remix IDE for TON. The best alternative would likely to load up a generic online IDE to play with smart contracts based on Glitch.
As always, I would recommend simply developing smart contracts on a local machine.
There are plenty of projects out there to try. Here are 3 suggestions:
- Rock paper scissors game that require deposits to play (think about how to keep data private in between moves)
- Try deploying a custom Jetton (token)
- Try making a basic swap/IDO contract
I haven't heard of 10 video lessons, but I do know of the Ten Lessons GitHub repository for FunC. They have since then grown to 19 lessons.
The best solution is likely the TON Contract Executor. It allows you to run the TON Virtual Machine locally, and thus execute smart contracts. You should be able to debug and fully test contracts before launching them to the network. I don't believe it forks networks like HardHat can, however.
There is also MyLocalTON which is a community led solution that runs not only the virtual machine b...
You need an API key to overcome this limitation. The @tonapibot will give you one, as described on the toncenter website.
Once you get to production, it's best to run your own instance.
You likely can. Just use:
pip install pytonlib
If that doesn't work, you can try a community member's python version of tonsdk.
The code is law, and the law says no. I imagine that this is to ensure that domains are held by people who are "alive".
Here is the code for reference.
if (op == op::dns_balance_release) { ;; release domain
throw_unless(414, (now() - last_fill_up_time > one_year) & (cell_null?(auction)));
int min_price = get_min_price(domain.begin_pars...
It is not possible to use MetaMask when using TON because TON is not an EVM-based blockchain.
Also, when you import a private key or mnemonic into an application like MetaMask or MyTonWallet, you are not necessarily "transferring" to a different wallet. They're all the same account, just being displayed in a different user interface.
As far as I am aware, there are no complete user-friendly interfaces to create a DAO on TON. That being said, there are smart contract and repositories examples for you to potentially work off of.
Probably the closest to what you want:
https://github.com/orbs-network/dao-vote
Fift implementation of a multisig wallet:
https://github.com/mir-one/dao-multisig
There are two things that you could be talking about. The first are payment channels, which is a statement channel solution that is good if you have many small payments between two parties.
You can find information on payment channels here:
https://github.com/ton-blockchain/payment-channels
https://github.com/toncenter/tonweb/tree/master/src/contract/payments
If you're just trying to send TON from one wallet to another, you could just write a python or node script.
There is no such layer or toolkit. You would have to build such primitives yourself using the TON virtual machine and potentially FunC.
There is such an operator; the documentation calls ita "conditional operator".
https://ton.org/docs/develop/func/statements#conditional-operator
This is the example provided:
;; <condition> ? <consequence> : <alternative>
x > 0 ? x * fac(x - 1) : 1;
There is one community led solution called pytonlib that I have found to send a transaction in Python. Please note that I have not tried it myself so I cannot in good faith recommend it, but the community members who work on it are quite active.
Install with:
pip install ton
Here is an example of how it is used to send a transaction.
from .init import client
from .wallet import wallet
# Viewing transactions
txs =...
In JavaScript, you can use the ton
package. I have adapted an example from a community-led TON tutorial. Please use at your own risk.
What it does is:
- Generate multiple mnemonics
- Find the addresses of the generated mnemonics
- Fund the addresses of these mnemonics with a pre-funded wallet
- Send a transaction out of these mnemonnics to automatically deploy the contract
im...
Like @<1485940136469336064|Daniil Sedov> mentioned, there is currently no publicly known bridge between TON and Everscale Network. You can track all of the bridges on TON with the following link:
The official bridge currently includes bridging between Ethereum and Binance.
There are many explorers available for TON. You can see them all here:
https://ton.app/explorers
I personally like Tonscan, because it allows you to view smart contract opcodes. It's used by most developers.
dTon is also nice because it also displays some data about the blockchain overall, if you're looking for macro-level data, similar to the Etherscan counterparts.
The official TON documentation can be found here:
https://ton.org/docs
If you're getting started with TON, a recent tutorial has been made available here:
https://ton-community.github.io/tutorials/01-wallet/