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

9 months ago
Jeremy
384 × 5 Administrator
How do I delete a smart contract?
How do I delete a smart contract?
You can use [`send_raw_message(cell msg, int mode)`](https://docs.ton.org/develop/func/stdlib/#send_raw_message) within the smart contract to act as the deletion of the smart contract. This is because mode 128 will "carry all the remaining balance of the current smart contract instead of the value originally indicated in the message", essentially removing all of the TON from the smart contract. Mode 32 will cause the "current account must be destroyed if its resulting balance is zero", which in conjunction with 128 will cause the smart contract to be deleted. So using `mode = 160` with `send_raw_message` will essentially delete the smart contract.
You can use `send_raw_message(cell msg, int mode)` within the smart contract to act as the deletion of the smart contract. This is because mode 128 will "carry all the remaining balance of the current smart contract instead of the value originally indicated in the message", essentially removing all of the TON from the smart contract. Mode 32 will cause the "current account must be destroyed if its resulting balance is zero", which in conjunction with 128 will cause the smart contract to be deleted. So using `mode = 160` with `send_raw_message` will essentially delete the smart contract.
9 months ago
Original
Jeremy
384 × 5 Administrator
How do I delete a smart contract?

You can use `send_raw_message(cell msg, int mode)` within the smart contract to act as the deletion of the smart contract. This is because mode 128 will "carry all the remaining balance of the current smart contract instead of the value originally indicated in the message", essentially removing all of the TON from the smart contract. Mode 32 will cause the "current account must be destroyed if its resulting balance is zero", which in conjunction with 128 will cause the smart contract to be deleted. So using `mode = 160` with `send_raw_message` will essentially delete the smart contract.