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

Bitcoin-broadcasted operation events should be handled #396

Closed
kantai opened this issue Jan 15, 2021 · 3 comments · Fixed by #400 or #398
Closed

Bitcoin-broadcasted operation events should be handled #396

kantai opened this issue Jan 15, 2021 · 3 comments · Fixed by #400 or #398
Labels

Comments

@kantai
Copy link

kantai commented Jan 15, 2021

STX transfers can be performed via on-bitcoin transactions. These produce normal stacks transfer events, but associate them with a transaction receipt formatted like:

{
            "txid": "<bitcoin-txid>",
            "tx_index": 1,
            "status": "success",
            "raw_result": "0x...",
            "raw_tx": "0x00",
            "contract_abi": null,
}

An example transaction:

https://www.blockchain.com/btc/tx/c0263c14f689ae757290f90765a28314497f52bd22b8bcbf87a12c764dd9d9be

@kantai
Copy link
Author

kantai commented Jan 15, 2021

Note: this leads to a descrepency in the account balances between the API and nodes, see the account SP2ZP4GJDZJ1FDHTQ963F0292PE9J9752TZJ68F21:

$ curl -s http://seed-0.mainnet.stacks.co:20443/v2/accounts/SP2ZP4GJDZJ1FDHTQ963F0292PE9J9752TZJ68F21?proof=0 | jq .balance
"0x0000000000000000000000000004dcbb"

A balance of 0.318651 STX, whereas the explorer shows a balance of .316651 STX -- a difference equal to the missed transfer.

@blockstack-devops
Copy link

🎉 This issue has been resolved in version 0.41.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@blockstack-devops
Copy link

🎉 This issue has been resolved in version 0.42.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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