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

how to use existing wallets by address? #73

Open
ddtch opened this issue Oct 11, 2024 · 0 comments
Open

how to use existing wallets by address? #73

ddtch opened this issue Oct 11, 2024 · 0 comments

Comments

@ddtch
Copy link

ddtch commented Oct 11, 2024

Hey guys things is next:
in tutorials I see you use code example like:

const mnemonic = "unfold sugar water ..."; // your 24 secret words (replace ... with the rest of the words)
const key = await mnemonicToWalletKey(mnemonic.split(" "));
const wallet = WalletContractV4.create({ publicKey: key.publicKey, workchain: 0 });

and later on refer to the key like:

await walletContract.sendTransfer({
    secretKey: key.secretKey,
...

But what if I do not creating wallet? And I only know the public key and address itself?
For example I use @tonconnect/ui lib to connect wallets of users. Should I use @tonconnect/ui method sendTransaction to acheive same outcome?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant