2

if i create a custom instruction that requires a Keypair can another Keypair or client wallet sign or pay the transaction fees of said instruction please also explain how such things work.

1 Answer 1

2

Yes. you can however, there are some caveats:

  • If the keypair is used as the payer it will need enough funds for gas fees + account rent exemption.

You can then use the partialSign method to partially sign the instruction with the Keypair & then additionally sign with your own key & send.

Alternatively the first Keypair could sign & then just use another keypair as the payer & that would also work

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.