subscan
Extrinsic #808815-1
Timestamp
2024-10-02 07:23:40 (UTC)
Block Time
2024-10-02 07:23:40 (UTC)
Block
Life Time808812 - 808844
Extrinsic Hash
0x5f7514fefaa0ee02e316f82faabe81928f25f879040c5765ecdc5c8b0981c602
Action
Sender
Estimated Fee
avail-turing - AVAIL
0
.921334778497121336
AVAIL
Used Fee
avail-turing - AVAIL
0
.921334778497121336
AVAIL
Nonce
203
Result
Failed
(BadOrigin)
Parameters
[1 items
0:{4 items
"name":"code"
"type":"Vec<U8>"
"type_name":"Bytes"
"value":"import { Block, Matrix } from '@/types/light-client'; import config from "../utils/config" import { generateRandomCells } from '@/utils/helper'; import { BlockToProcess } from '@/types/light-client'; import { ApiPromise, initialize } from 'avail-js-sdk' import { Cell } from "@/types/light-client"; import { bnToU8a } from '@polkadot/util'; export async function runLC(onNewBlock: Function, registerUnsubscribe: Function): Promise<() => void> { const api: ApiPromise = await initialize('wss://turing-rpc.avail.so/ws'); const unsubscribe = await api.rpc.chain.subscribeFinalizedHeads(async (header: any) => { try { const blockNumber = header.number.toString() const blockHash = (await api.rpc.chain.getBlockHash(header.number)).toString(); const extension = JSON.parse(header.extension) const commitment = extension.v3.commitment const kateCommitment = commitment.commitment.split('0x')[1] // Check if block is with empty commitment ...[View All]
}
]
Signature
0xf42b805f477db0be12479af0ffb1ba1898c9f28643846417d1f48648684ecb015a1e3a075a5cbf6cd0830ae0ae64a7933817edd83e922d6d7d83c35c5e823483