Support calling makeCreateMarginfiAccountIx without a keypair
Closed this issue · 2 comments
exdx commented
Currently the makeCreateMarginfiAccountIx
/ / makeDepositIx
/ makeWithdrawIx
require a Wallet
type, which necessitates a private key. For users like exchanges, that perform actions on behalf of an end-user (and don't have their pk), it should be possible to create the ix without a key. Instead, the SDK would issue a Transaction, or TransactionInstruction, that the end-user can then sign.
A/C: Enable makeCreateMarginfiAccountIx
to issue an ix to be signed
exdx commented
per @losman0s there are pure instruction builders already present in the repository -- see
If these methods are sufficient we can mark this issue closed.
exdx commented
Closing for now as the issue has been resolved by using existing code paths.