Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

feat: decoding extrinsics within blocks #136

Merged
merged 1 commit into from
Jun 27, 2022
Merged

feat: decoding extrinsics within blocks #136

merged 1 commit into from
Jun 27, 2022

Conversation

harrysolovay
Copy link
Contributor

import { polkadot } from "capi/known";

const result = await polkadot.block().read();

result.block.extrinsics may look––for example––as follows:

[
  {
    protocolVersion: 4,
    signature: undefined,
    palletName: "Timestamp",
    methodName: "set",
    args: { now: 1656730165771 }
  },
  {
    protocolVersion: 4,
    signature: undefined,
    palletName: "ParaInherent",
    methodName: "enter",
    args: {
      data: {
        bitfields: [Array],
        backed_candidates: [Array],
        disputes: [Array],
        parent_header: [Object]
      }
    }
  }
]

@harrysolovay harrysolovay merged commit fdf9a56 into main Jun 27, 2022
@harrysolovay harrysolovay deleted the reading-block branch June 27, 2022 14:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant