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
Need help on the meaning of transaction types #92
Comments
Spawn = 1 Currently multisig txs are not supported by explorer. |
Well understood. Btw, does it mean that even there is a valid multisig tx, currently it wouldn't be returned by the explorer backend api (for example layer/{layerNum}/txs), right? |
Yes, correct |
Thanks for you reply!
Does the explorer api can meet our requirements? |
I think it will be better if you run your own instance of explorer (collector and apiserver), that way you will be sure about your requirements. Our service has some additional caching systems and other features applied to it, so I don't think it would be applicable to your needs because of a delay and so on. |
There are no failed transactions in Spacemesh today. If a transaction is included in a block it may be regarded as successful. There's a little bit more info on this here: https://github.com/spacemeshos/wiki/wiki/Integration-guide#tracking I cannot speak to anything specific to the explorer API as I'm not familiar with it. |
You can also tell tx type from the template address after decoding the tx, see https://github.com/spacemeshos/wiki/wiki/Integration-guide#decoding |
Hi ! Really appreciate your replies. So one last question: since on layer could contains multiple blocks, for example https://mainnet-explorer-api.spacemesh.network/layers/{}/blocks could possibly returns multiple blocks for one layer, how could I determine which block is the canonical one? |
I don't think this is currently exposed in api v1. We'll address this in api v2. With respect to the actual protocol, the relevant code is here: Blocks are sorted by block ID: So the protocol says, among the known blocks for a given layer sorted by block ID, the canonical block for a given layer is the first valid block (as passed by Tortoise), or if there is no valid block, it's the first non-invalid block that the Hare output. Failing both of these, the layer is empty. @dshulyak correct me if I got any of this wrong. |
Close this issue for now |
Here I want to know what the transaction type represents:
Maybe type = 1 means spawn and type=3 means single wallet spend, but what for multisig?
The text was updated successfully, but these errors were encountered: