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
Access TONs in Jetton contract type wallet

Votes Newest

Answers 2


If those TONs are locked in your contract you do not have any other option other than having a receiver to withdraw contract's balance. So you need to implement a new operation to withdraw desired amount of TON coins to a specific receptient.

for example:

if (op == op::withdraw()) {
		throw_unless(73, equal_slices(sender_address, admin_address));
		slice to_address = in_msg_body~load_msg_addr();
		int amount = in_msg_body~load_coins();
		
		;; send raw message to "to_address" with specified withdraw "amount"
		;; consider reserving some ton coins for storage and future fees
		
		return ();
}
  
  
Posted 9 months ago

yes

  
  
wiki
Posted 7 months ago
7K Views
2 Answers
10 months ago
29 days ago
Tags