TransactionFeePaidWithAlpha
Event v401 → current New #121Transaction fee was paid in Alpha .
View events on chainFrom Chain Metadata
Transaction fee was paid in Alpha. Emitted in addition to `TransactionFeePaid` when the fee payment path is Alpha. `alpha_fee` is the exact Alpha amount deducted.
Event Data
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 });
// Subscribe to TransactionFeePaidWithAlpha events
api.query.system.events((events) => {
events
.filter(({ event }) =>
event.section === stringCamelCase("SubtensorModule") &&
event.method === "TransactionFeePaidWithAlpha"
)
.forEach(({ event }) => {
console.log("TransactionFeePaidWithAlpha:", event.data.toHuman());
});
});Runtime Info
View Source- Pallet Index
- 7
- Event Index
- 121
- First Version
- v401
- Current Version
- v401