Extracts a scalar value from event or function arguments using a field index.
Supports both direct field access and nested tuple access (up to 4 levels).
Parameters
args: unknown[]
The decoded arguments from an event or function call
fieldIndex: number
The packed field index (supports both direct and nested access)
Returns bigint
The extracted scalar value as a bigint
Export
Throws
If arguments are missing or cannot be converted to bigint
Extracts a scalar value from event or function arguments using a field index. Supports both direct field access and nested tuple access (up to 4 levels).