Post

How it works:
Three subclasses ship by default: DevnetEntrypoint, TestnetEntrypoint, MainnetEntrypoint.
import { DevnetEntrypoint } from "@multiversx/sdk-core";
const entrypoint = new DevnetEntrypoint();
const account = await entrypoint.createAccount();
const nonce = await entrypoint.recallAccountNonce(account.address);
const txHash = await entrypoint.sendTransaction(signedTx);
await entrypoint.awaitCompletedTransaction(txHash);
Instantiate the subclass for your network. The entrypoint holds the network provider, chain ID, and gas configuration internally. Every method is wired to the right network.
English






