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 is the easiest way to send a transaction with TonConnect 2.0?

What's the easiest way to send a transaction with TonConnect 2.0?

For example,

message: "contribute"
value: "0.1 TON"
address: "[SOME_ADDRESS]"
  
  
Posted one year ago
Edited one year ago
Votes Newest

Answers


https://ton.org/docs/develop/dapps/ton-connect/transactions#transfer-with-comment-contract-deployment

let a = new TonWeb.boc.Cell();
a.bits.writeUint(0, 32);
a.bits.writeString("contribute");
let payload = TonWeb.utils.bytesToBase64(await a.toBoc());

console.log(await connector.sendTransaction({
  validUntil: Math.floor(new Date() / 1000) + 360,
  messages: [
    {
      address: "Something",
      amount: "100000000",
      payload: payload
    }
  ]
}));
1
1
Posted one year ago
2K Views
1 Answer
one year ago
one year ago
Tags