set_real_pays_fee

Call v385 → current #11

Set whether the real account pays transaction fees for proxy calls made by a

View calls on chain

Click items to navigate. Pan and zoom to explore.

From Chain Metadata

Set whether the real account pays transaction fees for proxy calls made by a specific delegate. The dispatch origin for this call must be _Signed_ and must be the real (delegator) account that has an existing proxy relationship with the delegate. Parameters: `delegate`: The proxy account for which to set the fee payment preference. `pays_fee`: If `true`, the real account will pay fees for proxy calls made by this delegate. If `false`, the delegate pays (default behavior).

Input Parameters

#NameTypeDescription
0
delegate
MultiAddress AccountIdLookupOf<T>delegate: Account address as a lookup source (typically resolves to AccountId)
1
pays_fee
bool pays_fee (bool)

Permissions

Origin
Signed
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Caller authorized to make changes

Effects

Postconditions

  • Value successfully updated

Code Examples

// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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);

// Build set_real_pays_fee call (typed, named args)
const delegate = undefined as any /* MultiAddress — replace with real value */;
const pays_fee = true;

const tx = api.tx.Proxy.set_real_pays_fee({
  delegate,
  pays_fee,
});

Runtime Info

Pallet Index
16
Call Index
11
First Version
v385
Current Version
v411