Skip to content

SIZE_CONSTANTS

const SIZE_CONSTANTS: object;

Defined in: packages/synapse-sdk/src/utils/constants.ts:138

Data size constants

readonly DEFAULT_UPLOAD_BATCH_SIZE: 32 = 32;

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

readonly GiB: bigint;

Bytes in 1 GiB

readonly KiB: 1024n = 1024n;

Bytes in 1 KiB

readonly MAX_UPLOAD_SIZE: number;

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

readonly MiB: bigint;

Bytes in 1 MiB

readonly MIN_UPLOAD_SIZE: 127 = 127;

Minimum upload size (127 bytes) PieceCIDv2 calculation requires at least 127 bytes payload

readonly PiB: bigint;

Bytes in 1 PiB

readonly TiB: bigint;

Bytes in 1 TiB