Skip to content

SIZE_CONSTANTS

const SIZE_CONSTANTS: object

Defined in: packages/iso-filecoin-synapse/src/constants.js:5

Data size constants

DEFAULT_UPLOAD_BATCH_SIZE: number = 32

Default number of uploads to batch together in a single addRoots transaction This balances gas efficiency with reasonable transaction sizes

GiB: bigint

Bytes in 1 GiB

KiB: bigint = 1024n

Bytes in 1 KiB

MAX_UPLOAD_SIZE: number

Maximum upload size (200 MiB) Current limitation for PDP uploads

MiB: bigint

Bytes in 1 MiB

MIN_UPLOAD_SIZE: number = 65

Minimum upload size (65 bytes) CommP calculation requires at least 65 bytes

TiB: bigint

Bytes in 1 TiB