MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / formatBlock

Function formatBlock

lib.esm/providers/format.js:120–129  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

118 prevRandao: ["mixHash"]
119});
120export function formatBlock(value) {
121 const result = _formatBlock(value);
122 result.transactions = value.transactions.map((tx) => {
123 if (typeof (tx) === "string") {
124 return tx;
125 }
126 return formatTransactionResponse(tx);
127 });
128 return result;
129}
130const _formatReceiptLog = object({
131 transactionIndex: getNumber,
132 blockNumber: getNumber,

Callers 2

_wrapBlockMethod · 0.90
_wrapBlockMethod · 0.90

Calls 2

mapMethod · 0.45

Tested by

no test coverage detected