UNPKG

@0xfacet/sdk

Version:

A toolkit for Facet blockchain integration.

9 lines (8 loc) 313 B
/** * Calculates the gas cost of input data based on EVM gas rules. * Each zero byte costs 4 gas, while each non-zero byte costs 16 gas. * * @param input - The input data as a Uint8Array * @returns The total gas cost as a BigInt */ export declare const calculateInputGasCost: (input: Uint8Array) => bigint;