Post

CodeMultiversX
CodeMultiversX@CodeMultiversX·
Meet the Tech: NetworkEntrypoint 🧩 The single import that gives a JavaScript or TypeScript app the full MultiversX stack, pre-wired for a network. Accounts, providers, controllers, factories — all from one object, tuned to the chain ID and URL of your target. 💡 🧵
CodeMultiversX tweet media
English
6
17
83
3.4K
CodeMultiversX
CodeMultiversX@CodeMultiversX·
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
1
1
22
160
CodeMultiversX
CodeMultiversX@CodeMultiversX·
The pattern that makes it broadly useful: factory methods for every controller. The entrypoint exposes factories for the full transaction surface. Each returns a controller pre-wired to the network. const sc = entrypoint.createSmartContractController(abi); const tokens = entrypoint.createTokenManagementController(); const transfers = entrypoint.createTransfersController(); const delegation = entrypoint.createDelegationController(); const governance = entrypoint.createGovernanceController(); No manual chain ID, no URL plumbing. The controller is ready to build, sign, send, and await.
English
1
1
18
124
Paylaş