Skip to content

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

@3lang3

Description

@3lang3

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...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions