LastCallResult

Storage Map v361 → current

The result of the last proxied call made by an account.

Explore chain
Queried 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

#NameTypeDescription
1
key1
AccountId key1 (AccountId) (hex -> SS58)

Stored Value

Debug storage for last proxy call result (Option<DispatchResult>)

Code Examples

import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";

const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });

// Query LastCallResult storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query
  [stringCamelCase("Proxy")]
  [stringCamelCase("LastCallResult")](
  key1
);

console.log("LastCallResult:", result.toHuman());

Runtime Info

Pallet
Proxy
Storage Kind
Map
First Version
v361
Current Version
v393