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 some useful subcmds to build complex transaction #619

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

david-fi5box
Copy link

@david-fi5box david-fi5box commented Nov 6, 2024

some useful subcmds to build complex transaction:

  1. build-typeid-args
    when we want to create a typeid cell, it's args of type script is hash of inputs[0] and output index of typeid cell.
  2. amount2bytes
    when we create a xUDT cell, we need convert token amount to bytes as little end uint128
  3. calc-type-hash
    typeid is hash of typeid cell's type script.
  4. export-offline-tx
    tx json file created by ckb-cli can't offline signed by Neuron. Neuron need another format json file. this subcmd export tx to it.
  5. fix skip check for add-input
    ckb-cli tx add-intput will return err when input's lock script is unknown in default. Add flag skip-check will ignore this case, but there is a bug, ckb-cli will panic even add flag skip-check.

@david-fi5box david-fi5box changed the title add some useful subcmds to build compelex transaction add some useful subcmds to build complex transaction Nov 6, 2024
fix skip check for add-input
add subcmd calc-type-hash
add export-offline-tx
add amount2bytes
add build-typeid-args
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

Successfully merging this pull request may close these issues.

3 participants