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 Blake2-256 hash of the remark content

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 Remarked events
api.query.system.events((events) => {
  events
    .filter(({ event }) =>
      event.section === stringCamelCase("System") &&
      event.method === "Remarked"
    )
    .forEach(({ event }) => {
      console.log("Remarked:", event.data.toHuman());
    });
});

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
v393