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
Back to post

Revisions 2

one year ago
Jeremy
394 × 5 Administrator
When a function "throws" in FunC, is the transaction cancelled?
When a function "throws" in FunC, is the transaction cancelled?
It depends on whether or not a transaction is internal or external. If a transaction is internal, it depends on the bounce flag. If the address that the internal transaction is directed to is bounceable, then that 10 TON amount minus gas will be returned to the original address. The transaction will still be recoreded in the blockchain. If a transaction is external, then it depends on the [accept call](https://docs.ton.org/develop/smart-contracts/guidelines/accept) in the code. If the throw is before the accept, then it will not be recoreded in the blockchain and thus the 10 TON will stay where it was originally. In the example you gave, there is likely a wallet middleman: Main account -> wallet -> contract, so an external transaction and an internal transaction.
It depends on whether or not a transaction is internal or external. If a transaction is internal, it depends on the bounce flag. If the address that the internal transaction is directed to is bounceable, then that 10 TON amount minus gas will be returned to the original address. The transaction will still be recoreded in the blockchain. If a transaction is external, then it depends on the [accept call](https://docs.ton.org/develop/smart-contracts/guidelines/accept) in the code. If the throw is before the accept, then it will not be recoreded in the blockchain and thus the 10 TON will stay where it was originally. In the example you gave, there is likely a wallet middleman: Main account -> wallet -> contract, so an external transaction and an internal transaction
one year ago
Original
Jeremy
394 × 5 Administrator
When a function "throws" in FunC, is the transaction cancelled?

It depends on whether or not a transaction is internal or external. If a transaction is internal, it depends on the bounce flag. If the address that the internal transaction is directed to is bounceable, then that 10 TON amount minus gas will be returned to the original address. The transaction will still be recoreded in the blockchain. If a transaction is external, then it depends on the [accept call](https://docs.ton.org/develop/smart-contracts/guidelines/accept) in the code. If the throw is before the accept, then it will not be recoreded in the blockchain and thus the 10 TON will stay where it was originally. In the example you gave, there is likely a wallet middleman: Main account -> wallet -> contract, so an external transaction and an internal transaction