@ecp.eth/sdk / comments / decodeNumberValue
Function: decodeNumberValue()
function decodeNumberValue(encodedValue, isSigned): bigint;
Defined in: packages/sdk/src/comments/metadata.ts:468
Decodes a number value from encoded metadata bytes
Parameters
encodedValue
`0x${string}`
The hex-encoded bytes (32 bytes big-endian)
isSigned
boolean
= false
Whether the number is signed (for two's complement handling)
Returns
bigint
The decoded number value (as bigint for safety)