SIZE_CONSTANTS
const SIZE_CONSTANTS: object;
Defined in: packages/synapse-sdk/src/utils/constants.ts:138
Data size constants
Type Declaration
Section titled “Type Declaration”DEFAULT_UPLOAD_BATCH_SIZE
Section titled “DEFAULT_UPLOAD_BATCH_SIZE”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
MAX_UPLOAD_SIZE
Section titled “MAX_UPLOAD_SIZE”readonly MAX_UPLOAD_SIZE: number;
Maximum upload size (200 MiB) Current limitation for PDP uploads
readonly MiB: bigint;
Bytes in 1 MiB
MIN_UPLOAD_SIZE
Section titled “MIN_UPLOAD_SIZE”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