ワンクリックで
mvx-sdk-go-interactors
Components for interacting with the blockchain (Wallets, Transaction Interactors, Nonce Handlers) in Go.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Components for interacting with the blockchain (Wallets, Transaction Interactors, Nonce Handlers) in Go.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Guidelines for establishing context before an audit.
Perform a comprehensive on-chain security audit of a deployed MultiversX smart contract. Use when reviewing a contract's security posture, permissions, state, and economic safety without source code.
Read on-chain state in MultiversX smart contracts. Use when accessing caller info, account balances, block timestamps, ESDT token metadata, local roles, code metadata, or any data from self.blockchain().
Gas-optimized cache patterns for MultiversX smart contracts using Drop-based write-back caches. Use when building contracts that read/write multiple storage values per transaction, DeFi protocols, or any gas-sensitive contract.
Identify ambiguous requirements and ask targeted clarifying questions for MultiversX development. Use when user requests are vague, missing technical constraints, or have conflicting requirements.
Comprehensive code analysis toolkit for MultiversX smart contracts. Covers differential review (version comparison, upgrade safety), fix verification (validate patches, regression testing), and variant analysis (find similar bugs across codebase). Use when reviewing PRs, verifying security patches, or hunting for bug variants.
| name | mvx-sdk-go-interactors |
| description | Components for interacting with the blockchain (Wallets, Transaction Interactors, Nonce Handlers) in Go. |
Loading keys and addresses.
import "github.com/multiversx/mx-sdk-go/interactors"
wallet := interactors.NewWallet()
// Load PEM
privateKey, err := wallet.LoadPrivateKeyFromPemFile("wallet.pem")
// Load Keystore
privateKey, err := wallet.LoadPrivateKeyFromKeystoreFile("wallet.json", "password")
// Get Address
address, err := wallet.GetAddressFromPrivateKey(privateKey)
bech32Address := address.AddressAsBech32String()
Automatically fetches and increments nonces. Recommended way to manage nonces.
import "github.com/multiversx/mx-sdk-go/interactors/nonceHandlerV3"
// Initialize Handler
args := nonceHandlerV3.ArgsAddressNonceHandler{
Proxy: proxy,
Address: address,
}
handler, err := nonceHandlerV3.NewAddressNonceHandler(args)
// Fetch Initial Nonce
nonce, err := handler.GetNonce(ctx)
// Apply Nonce to Transaction & Increment
handler.ApplyNonceAndGasPrice(tx) // Sets tx.Nonce = current, then increments internal counter
High-level wrapper for sending transactions.
import "github.com/multiversx/mx-sdk-go/interactors"
// Setup
txInteractor, err := interactors.NewTransactionInteractor(proxy, txBuilder)
// Send Transaction
txHash, err := txInteractor.SendTransaction(ctx, tx, privateKey)
// Send Multiple Transactions
txHashes, err := txInteractor.SendTransactions(ctx, txs, privateKey)
// Helper to create new keypair
privateKey, publicKey := wallet.GeneratePrivateKey()