Remarked

Event v101 → current #5

Emitted when a remark is stored on-chain.

View events on chain

From Chain Metadata

On on-chain remark happened.

Triggers

Preconditions

  • Remark data provided
  • Transaction fee paid

Effects

Postconditions

  • Remark data recorded in block

Side Effects

  • Data permanently on chain but not in state

Event Data

#NameTypeDescription
0
sender
AccountId Account that sent the remark (hex -> SS58)
1
hash
H256 T::HashBlake2-256 hash of the remark content

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 Remarked events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.System.Remarked.get(block.hash);
  for (const evt of events) {
    console.log("Remarked:", evt.payload);
  }
});

On-Chain Activity

Emission Frequency
●●○○○○ Moderate 10K–100K emissions

Occasional use

#41 most emitted event

As of block 7,429,232

Runtime Info

Pallet Index
0
Event Index
5
First Version
v101
Current Version
v411