IntData

One of the 5 Plutus-Core builtin data classes. Parent class is UplcData.

Represents an unbounded integer (bigint).

Constructor

new helios.IntData(value: bigint)

Static methods

fromCbor

Deserialize a CBOR encoded IntData. Mutates bytes and shifts it to the following element.

helios.IntData.fromCbor(bytes: number[]): IntData

Getters

value

Get the underlying bigint value.

int_data.value: bigint

Methods

toCbor

Encodes a IntData instance as CBOR bytes.

int_data.toCbor(): number[]

toSchemaJson

Returns the schema JSON needed to interact with external tools like cardano-cli and Lucid.

int_data.toSchemaJson(): string