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

Add base layer transaction type for API #155

Closed
pavitthrap opened this issue Sep 28, 2022 · 0 comments · Fixed by #216
Closed

Add base layer transaction type for API #155

pavitthrap opened this issue Sep 28, 2022 · 0 comments · Fixed by #216
Assignees

Comments

@pavitthrap
Copy link
Contributor

pavitthrap commented Sep 28, 2022

Right now, if a particular transaction comes from the base chain, the type of that payload is lost (for example it's unclear that a specific tx is a DepositFt operation).

The API currently determines that a tx comes from the base layer by checking if the raw_tx field is set to 00.

We can add a field to the transaction info called base_chain_payload_type with a type along the lines of Option(BurnchainOperation). Adding this would allow the API to easily determine the base layer tx type.

This change would also be helpful for the stacks-blockchain too.

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