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

[HELP]How do I use my mnemonic phrase to generate an account and interact with a contract? #10

Open
3lang3 opened this issue Jun 22, 2023 · 0 comments

Comments

@3lang3
Copy link

3lang3 commented Jun 22, 2023

like using ethersjs in evm?
I have searched a lot of documents, but did not see the corresponding content

const provider = new ethers.providers.JsonRpcProvider('');
const wallet = new ethers.Wallet('pk');
const signer = provider.connect(wallet)
const contract = new ethers.Contract(contractAddr, abi, signer);
const tx = await contract.min(args...)
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