anza-xyz / wallet-adapter

Modular TypeScript wallet adapters and components for Solana applications.
https://anza-xyz.github.io/wallet-adapter/
Apache License 2.0
1.55k stars 944 forks source link

how get Signer object with wallet adapter #913

Closed mehranml closed 7 months ago

mehranml commented 7 months ago

Hi i using openbook sdk to open order on it and this required owner as Account type with secret and public keys can you help me to get this?

 const s = await market.placeOrder(connection, {
      owner: // Here !!! ,
      payer: publicKey,
      side: sidebarForm.tab === "buy" ? "buy" : "sell",
      price: sidebarForm.limit_price,
      size: sidebarForm.amount,
      orderType: "limit", // 'limit', 'ioc', 'postOnly'
    });
github-actions[bot] commented 7 months ago

Hi @mehranml,

Thanks for your question!

We want to make sure to keep signal strong in the GitHub issue tracker – to make sure that it remains the best place to track issues that affect the development of Wallet Adapter itself.

Questions like yours deserve a purpose-built Q & A forum. Unless there exists evidence that this is a bug with Wallet Adapter itself, please post your question to the Solana Stack Exchange using this link:

https://solana.stackexchange.com/questions/ask


This automated message is a result of having added the ‘question’ tag.