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

Assign different address to sign for a PSBT #5858

Open
LRam10 opened this issue Sep 16, 2024 · 0 comments
Open

Assign different address to sign for a PSBT #5858

LRam10 opened this issue Sep 16, 2024 · 0 comments

Comments

@LRam10
Copy link

LRam10 commented Sep 16, 2024

Objective:

  • Use LeatherProvider API to create and sign a PSBT for a Bitcoin transaction, signing index 0 with the ordinal address (for an inscription) and the remaining inputs with a BTC payment address or having a sendInscription function.
  • Ensure that when broadcasting the PSBT, the API returns both the new hex value and the transaction ID.

Xverse allows singing inputs as follows:

payload: {
      network: {
            type: 'Mainnet'
                },
              message: 'Sign Transaction',
              psbtBase64: psbt,
              broadcast: true,
               inputsToSign: [ {
               address:ordinal_address,
                 signingIndexes:[0] //index 0 for inscription
                 },
                {
               address: .payment_address,
               signingIndexes: inputs,
               }],
  }
@markmhendrickson markmhendrickson changed the title Assign Different address to sing for a PSBT Assign different address to sign for a PSBT Sep 19, 2024
@markmhendrickson markmhendrickson changed the title Assign different address to sign for a PSBT Assign different address to sign for a PSBT Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants