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 9 months ago
Edited 6 months 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 9 months ago
685 Views
1 Answer
9 months ago
6 months ago
Tags