Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
What happens when you transfer TON coin to an uninitialized wallet address?

TON wallets are smart contracts that need to be deployed on-chain.

But if someone does not deploy their wallet contract, their wallet is unininitialized.

What happens when I send TON coin to this uninitialized address?


This question was imported from Telegram Chat: https://t.me/tondev/41603

Votes Newest

Answers 2


It depends on many factors.

  1. You have included the initState (that is the code and data of the wallet or smart contract) alongside your transaction. In this case the smart contract is deployed first, and then it handles the incoming message. This is similar to sending the transaction to an initialized account.

  2. No initState, and bounce flag is set. In this case, the message cannot be delivered to a smart contract and the message will be bounced back to the sender. After subtracting the consumed gas, the rest of the amount is returned back.

  3. No initState, and bounce flag is unset. In this case, the message cannot be delivered, but it will not bounce back to the sender, and the sent amount will be accounted for the reciving address, essentially increasing its balance.

In fact, one way to deploy a wallet, is to send some TON to its address (which is not initialized yet) with the bounce flag unset. After this step, the owner can deploy and initialize the wallet using the funds at the current unintialized address. This step usually happens on the first withdraw operation.

Wallets usually check the state of the target address and if it's not initialized, they unset the bounce flag, so that it's not returned.

1
1
Posted one year ago

Deployment of the wallet is the act of uploading its bytecode to the blockchain. But all that is necessary for the success of the transaction is the correct TON address (for example, when using a wallet application), even if it has not been deployed.

When you send TONcoin funds to an uninitialized correct address happen something of the following events:

  1. The transaction will be executed and funds will store on-chain until the corresponding wallet's address will deploy. After deployment, the owner of the wallet will get funds on balance.
  2. The transaction will be executed and then a bounce happens - the funds(minus all message transfer and gas fees) return to the sender.
    This behavior depends on the message mode of message layout.

You can learn more about deployment of TON smart contracts here.

30K Views
2 Answers
2 years ago
one year ago
Tags