Skip to content

How can I include a payload in a Jetton transfer? #50

@bit0t

Description

@bit0t

I want to add forward_payload, but when I pass bytes to this method, the data isn't sent correctly.

This is my code

body = JettonWallet().create_transfer_body(
to_address=Address(RECEIVER_JETTON_ADDRESS),
jetton_amount=int(0.01 * (10 ** JETTON_DECIMALS)),
response_address=Address(our_main_address),
forward_amount=to_nano("0.04", "ton"),
forward_payload="122333".encode("utf-8")
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions