Skip to content

@lelantos-org/sdk / core / bigintFrom

Function: bigintFrom() โ€‹

ts
function bigintFrom(v, path): bigint;

Defined in: @lelantos-org/sdk/dist/core/decode.d.ts:19

A field element as a decimal string, a 0x-hex string, or a JSON number.

Accepts all three for the relayer, whose Rust DTOs disagree field by field (String here, u64 there โ€” see services/relayer/codec.ts). Only use it where the wire form is genuinely not pinned: a field known to be hex must go through hexInt, or a bare-hex value made only of decimal digits decodes as the wrong number.

Parameters โ€‹

ParameterType
vunknown
pathstring

Returns โ€‹

bigint

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub