RealPaysFeeSet

Event v385 → current #7

The real-pays-fee setting was updated for a proxy relationship.

View events on chain

From Chain Metadata

The real-pays-fee setting was updated for a proxy relationship.

Triggers

Preconditions

  • Caller authorized to make changes

Effects

Postconditions

  • Value successfully updated

Event Data

#NameTypeDescription
0
real
AccountId real: Account address (32 bytes, SS58-encoded) (hex -> SS58)
1
delegate
AccountId delegate: Account address (32 bytes, SS58-encoded) (hex -> SS58)
2
pays_fee
bool pays_fee (bool)

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);

// Subscribe to RealPaysFeeSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.Proxy.RealPaysFeeSet.get(block.hash);
  for (const evt of events) {
    console.log("RealPaysFeeSet:", evt.payload);
  }
});

Runtime Info

Pallet Index
16
Event Index
7
First Version
v385
Current Version
v411