Skip to content

Equivalent to witness and assembly #41

Answered by satran004
bkreiser asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

It's possible. Please go through the below options using low-level and high-level apis. Let me know if there is any gap.

Option 1: Using Low-level serialization api

a> Using low level api, you can create a Transaction object from TransactionInput[] and TransactionOutput[]. You need to find the required utxos through UtxoService / UtxoSelectionStrategy impl.

After building the transaction, you can sign the transaction sequentially or distribute and then assemble.

b> Sign the transaction with account1
c> Sign the output from step-b with account2. This will add additional witness
d> Post transaction with output from step-c

Check this example (Transfer fund from multi-sig script address, …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@bkreiser
Comment options

@edridudi
Comment options

@satran004
Comment options

@edridudi
Comment options

Answer selected by bkreiser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants