Code Monkey home page Code Monkey logo

Comments (4)

mr-tron avatar mr-tron commented on September 23, 2024

Technically comment is forward_payload:(Either Cell ^Cell) - any binary messages with arbitrary structure. It can be (and will be used) for interacting with dapps. So usually it should have 32-bit prefix for marking message type. And prefix 0x00000000 by agreement tell us what it's text comment.
https://explorer.toncoin.org/transaction?account=0:b7a838da35ffc852948edd4d12b1af57504a0a98d9a8b92d68925b5d23bd91d6&lt=30803778000007&hash=594db632029d03608a62d7ec19997bbde28c0c436eb6cd23ba2733fff295727f
Your message Privet :) has hex represenation 507269766574203A29. As you see - no prefix.

Tonkeeper will change behavior in next release. It will add zero prefix when sending and display text comment only for messages with prefix.

from tonapi.

troman29 avatar troman29 commented on September 23, 2024

@mr-tron
Thanks for the explanation! We can add a prefix when transferring in our product. But we would also like to be able to read different types of comments (if other popular wallets don't have it either).

Maybe you can put a raw forward_payload in a JettonTransferAction?

from tonapi.

mr-tron avatar mr-tron commented on September 23, 2024

I notified all popular wallets.

from tonapi.

troman29 avatar troman29 commented on September 23, 2024

@mr-tron Thanks! :)

from tonapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.