mvx-cross-contract-calls
Make cross-contract calls in MultiversX smart contracts.
Skill by multiversx
Chalk Labs
Need help deploying mvx-cross-contract-calls?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/multiversx-mvx-cross-contract-calls
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/mvx-cross-contract-calls
What's inside
- Skill name
mvx-cross-contract-calls- Description
- Make cross-contract calls in MultiversX smart contracts. Use when calling another contract, handling callbacks, managing back-transfers, using typed proxies, or sending tokens via the Tx builder API (.tx().to()).
- License
- MIT
- Instructions
- 376 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# MultiversX Cross-Contract Calls — Tx Builder API Reference
Complete reference for cross-contract calls, callbacks, back-transfers, and proxies in MultiversX smart contracts (SDK v0.64+).
## Tx Builder Chain
Every cross-contract interaction starts with `self.tx()` and chains builder methods:
```
self.tx()
.to(address) // recipient (ManagedAddress or &ManagedAddress)
.typed(ProxyType) // type-safe proxy (recommended)
// OR .raw_call("endpoint_name") // raw call without proxy
.egld(&amount) // payment: EGLD
// OR .single_esdt(&id, nonce, &amount) // payment: single ESDT
// OR .payment(payment) // payment: Payment / EgldOrEsdtTokenPayment
.gas(gas_limit) // explicit gas (required for promises)
.returns(ReturnsResult) // result handler(s)
.sync_call() // execution method
```
### Builder Methods
| Category | Method | Description |
|----------|--------|-------------|
| **Target** | `.to(address)` | Set recipient address |
| **Proxy** | `.typed(ProxyType)` | Use generated proxy for type-safe calls |
| **Raw** | `.raw_call("endpoint")` | Manual endpoint call (no proxy) |
| **Payment** | `.egld(&amount)` | Attach EGLD |
| | `.single_esdt(&token_id, nonce, &amount)` | Attach single ESDT |
| | `.esdt(esdt_payment)` | Attach `EsdtTokenPayment` |
| | `.payment(payment)` | Attach any payment type |
| | `.egld_or_single_esdt(&id, nonce, &amount)` | Attach EGLD or ESDT |
| **Gas** | `.gas(amount)` | Set gas limit |
| | `.gas_for_callback(amount)` | Reserve gas for callback |
| **Args** | `.argument(&arg)` | Add single argument (raw calls) |
| | `.arguments_raw(buffer)` | Add pre-encoded arguments |
| **Results** | `.returns(handler)` | Add result handler (can chain multiple) |
| **Callback** | `.callback(closure)` | Set callback for async calls |
### Execution Methods
| Method | Type | Description |
|--------|------|-------------|
| `.sync_call()` | Synchronous | Same-shard atomic. Panics if callee fails. |
| `.sync_call_fallible()` | Synchronous | Same-shard. Returns `Result` on callee error (use with `ReturnsHandledOrError`). |
| `.sync_call_readonly()` | Synchronous | Read-only call. Cannot modify state. |
| `.register_promise()` | Async (v2) | Cross-shard. Requires `.gas()`. Multiple promises per tx OK. |
| `.async_call_and_exit()` | Async (v1) | Legacy. Only 1 per tx. Exits immediately. Prefer `register_promise()`. |
| `.transfer()` | Transfer | Send tokens without calling an endpoint. |
## Simple Transfers (No Endpoint Call)
```rust
// Send EGLD
self.tx().to(&recipient).egld(&amount).transfer();
// Send ESDT
self.tx().to(&recipient).payment(payment.clone()).transfer();
// Send specific ESDT
self.tx().to(&recipient).single_esdt(&token_id, nonce, &amount).transfer();
```
## Synchronous Calls (Same-Shard)
### Typed Proxy Call
```rust
// Basic sync call with typed result
let result: BigUint = self.tx()
.to(&pool_address)
.typed(proxy_pool::LiquidityPoolProxy)
.get_reserve()
.returns(ReturnsResult)
.sync_call();
```
### Sync Call with Payment
```rust
self.tx()
.to(&accumulator_address)
.typed(proxy_accumulator::AccumulatorProxy)
.deposit()
.payment(revenue)
.returns(ReturnsResult)
.sync_call();
```
### Multiple Return Values
```rust
// Chain multiple .returns() for multi-value returns
let (result, back_transfers) = self.tx()
.to(&pool_address)
.typed(proxy_pool::PoolProxy)
.withdraw(amount)
.returns(ReturnsResult)
.returns(ReturnsBackTransfersReset)
.sync_call();
```
### Fallible Sync Call
```rust
// Use with ReturnsHandledOrError to not panic on callee error
let outcome: Result<BigUint, u32> = self.tx()
.to(&address)
.typed(SomeProxy)
.some_endpoint()
.returns(
ReturnsHandledOrError::new()
.returns(ReturnsResult)
)
.sync_call_fallible();
match outcome {
Ok(value) => { /* success */ },
Err(error_code) => { /* callee returned error */ },
}
```From multiversx/mx-ai-skills, MIT.
More from multiversx/mx-ai-skills
- 0.544score
mvx-deploy-flow
multiversx
Deploy MultiversX smart contracts with pre-flight checks, verification, and post-deployment validation.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-constant-time
multiversx
Verify cryptographic operations execute in constant time to prevent timing attacks.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-project-architecture
multiversx
Production-grade project structure patterns for MultiversX smart contracts.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-property-testing
multiversx
Use property-based testing and fuzzing to find edge cases in smart contract logic.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-debug-tx
multiversx
Debug and analyze MultiversX transactions.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-payment-handling
multiversx
Handle payments in MultiversX smart contracts.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-audit-onchain
multiversx
Perform a comprehensive on-chain security audit of a deployed MultiversX smart contract.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-blockchain-data
multiversx
Read on-chain state in MultiversX smart contracts.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-cache-patterns
multiversx
Gas-optimized cache patterns for MultiversX smart contracts using Drop-based write-back caches.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-clarification-expert
multiversx
Identify ambiguous requirements and ask targeted clarifying questions for MultiversX development.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-test-contract
multiversx
Perform automated on-chain testing of a deployed MultiversX smart contract.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-cross-contract-storage
multiversx
Read another contract's storage directly without async calls using storage_mapper_from_address.
SkillCFreshness: C★ 12Claude Code +9
Signals
- Stars
- 12
- Forks
- 4
- Open issues
- 0
- Last commit (this folder)
- Jul 2, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/multiversx/mx-ai-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from multiversx
- 0.544score
mvx-deploy-flow
multiversx
Deploy MultiversX smart contracts with pre-flight checks, verification, and post-deployment validation.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-payment-handling
multiversx
Handle payments in MultiversX smart contracts.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-project-architecture
multiversx
Production-grade project structure patterns for MultiversX smart contracts.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-property-testing
multiversx
Use property-based testing and fuzzing to find edge cases in smart contract logic.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-test-contract
multiversx
Perform automated on-chain testing of a deployed MultiversX smart contract.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-debug-tx
multiversx
Debug and analyze MultiversX transactions.
SkillCFreshness: C★ 12Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get mvx-cross-contract-calls running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
mvx-cross-contract-calls skill. Agent Mart. https://agentmart.dev/skills/multiversx-mvx-cross-contract-calls (last updated 2026-10-24)