ワンクリックで
mvx-sdk-py-core
Core SDK operations for MultiversX Python SDK - Entrypoints, Providers, and Network.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Core SDK operations for MultiversX Python SDK - Entrypoints, Providers, and Network.
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-py-core |
| description | Core SDK operations for MultiversX Python SDK - Entrypoints, Providers, and Network. |
This skill covers the fundamental building blocks of the multiversx-sdk v2 library.
Network-specific clients that simplify common operations:
| Entrypoint | Network | Default URL |
|---|---|---|
DevnetEntrypoint | Devnet | https://devnet-api.multiversx.com |
TestnetEntrypoint | Testnet | https://testnet-api.multiversx.com |
MainnetEntrypoint | Mainnet | https://api.multiversx.com |
LocalnetEntrypoint | Local | http://localhost:7950 |
from multiversx_sdk import DevnetEntrypoint
# Default API
entrypoint = DevnetEntrypoint()
# Custom API
entrypoint = DevnetEntrypoint(url="https://custom-api.com")
# Proxy mode (gateway)
entrypoint = DevnetEntrypoint(url="https://devnet-gateway.multiversx.com", kind="proxy")
| Method | Description |
|---|---|
create_account() | Create a new account instance |
create_network_provider() | Get underlying network provider |
recall_account_nonce(address) | Fetch current nonce from network |
send_transaction(tx) | Broadcast single transaction |
send_transactions(txs) | Broadcast multiple transactions |
get_transaction(tx_hash) | Fetch transaction by hash |
await_completed_transaction(tx_hash) | Wait for finality |
Lower-level network access:
| Provider | Use Case |
|---|---|
ApiNetworkProvider | Standard API queries (recommended) |
ProxyNetworkProvider | Direct node interaction via gateway |
# From entrypoint
provider = entrypoint.create_network_provider()
# Manual instantiation
from multiversx_sdk import ApiNetworkProvider
api = ApiNetworkProvider("https://devnet-api.multiversx.com", client_name="my-app")
| Method | Description |
|---|---|
get_network_config() | Chain ID, gas settings |
get_network_status() | Current epoch, nonce |
get_block(block_hash) | Fetch block data |
get_account(address) | Account balance, nonce |
get_account_storage(address) | Contract storage |
get_transaction(tx_hash) | Transaction details |
query_contract(query) | VM query (read-only) |
# 1. Create account and sync nonce
account = Account.new_from_pem("wallet.pem")
account.nonce = entrypoint.recall_account_nonce(account.address)
# 2. Create transaction (via controller)
controller = entrypoint.create_transfers_controller()
tx = controller.create_transaction_for_transfer(
sender=account,
nonce=account.get_nonce_then_increment(),
receiver=receiver_address,
native_amount=1000000000000000000
)
# 3. Send
tx_hash = entrypoint.send_transaction(tx)
# 4. Wait for completion
result = entrypoint.await_completed_transaction(tx_hash)
print(f"Status: {result.status}")