Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tonapi.blockchain.send_message(data) Always Returns False #19

Closed
v1p3rrrrr opened this issue Jun 24, 2024 · 1 comment
Closed

tonapi.blockchain.send_message(data) Always Returns False #19

v1p3rrrrr opened this issue Jun 24, 2024 · 1 comment

Comments

@v1p3rrrrr
Copy link

When calling the send_message function from tonapi.blockchain with the provided data, the transaction_result always returns False, regardless of the actual outcome of the transaction. This behavior is observed whether the transaction was successful or an error occurred.

        query = wallet.create_transfer_message(
            to_addr=destination_address,
            amount=transfer_amount,
            payload=payload,
            seqno=seqno,
        )

        message_boc = bytes_to_b64str(query["message"].to_boc(False))

        data = {'boc': message_boc}
        transaction_result = await tonapi.blockchain.send_message(data)
        print(transaction_result)
@nessshon
Copy link
Collaborator

@v1p3rrrrr The send_message method in TON API typically doesn't return the transaction result directly. If transaction_result is always False, it might be because the method doesn't provide transaction status in its response.

Visit https://tonapi.io/api-v2 for more details and documentation on available methods and their return values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants