Replies: 1 comment 2 replies
-
When you retrieve the account from a browser extension, you will never get the account Therefore, when you interact with an extension wallet, only the wallet itself knows the connected account private key and can sign transaction on the account behalf. If you want the wallet extension to sign / signAndSubmit transaction, you can use the wallet API |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Discord user ID
amorfati
Describe your question in detail.
In my own sdk I use the following to access Aptos account through private key:
How can i do the same browser side?
window.aptos.account
andwindow.aptos.getAccount()
both return account info. I need account ofAccount
that I can pass to this:What error, if any, are you getting?
No response
What have you tried or looked at? Or how can we reproduce the error?
window.aptos.account
andwindow.aptos.getAccount()
both return account info. I need access toAccount
which I can use to pass toaptos.transaction.sign
Which operating system are you using?
macOS
Which SDK or tool are you using? (if any)
N/A
Describe your environment or tooling in detail
I'm not using any wallet sdks. I'm using Petra chromium extension and able to connect using
window.aptos.connect()
.Beta Was this translation helpful? Give feedback.
All reactions