LastCallResult
Storage Map v361 → currentThe result of the last proxied call made by an account.
Explore chainQueried by: developerswallets
The Big Picture
After a proxy call, check this storage to see whether it succeeded or failed, without needing to parse events.
Use Cases
- Debug failed proxy calls
- Verify proxy call success
From Chain Metadata
The result of the last call made by the proxy (key).
Purpose & Usage
Purpose
Cache the result of the most recent proxy execution for debugging.
Common Query Patterns
- Query by account to see last proxy call result
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | accountId account raw: key1 | [u8; 32] [32] | key1 ([u8; 32]) |
Stored Value
Debug storage for last proxy call result (Option<DispatchResult>)
Code Examples
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// Query LastCallResult storage
const key1 = "0x0000000000000000000000000000000000000000000000000000000000000000";
const result = await api.query.Proxy.LastCallResult.getValue(key1);
console.log("LastCallResult:", result);Runtime Info
- Pallet
- Proxy
- Storage Kind
- Map
- First Version
- v361
- Current Version
- v411