Skip to main content
Version: Next

Namespace: constants

Utils

Enumerations​

References​

TRANSACTION_VERSION​

Renames and re-exports ETransactionVersion

Variables​

IS_BROWSER​

• Const IS_BROWSER: boolean

Defined in​

src/utils/encode.ts:4


TEXT_TO_FELT_MAX_LEN​

• Const TEXT_TO_FELT_MAX_LEN: 31

Cairo Felt support storing max 31 character

Defined in​

src/constants.ts:8


ZERO​

• Const ZERO: 0n

Defined in​

src/constants.ts:17


MASK_250​

• Const MASK_250: bigint

Defined in​

src/constants.ts:18


API_VERSION​

• Const API_VERSION: 0n

Defined in​

src/constants.ts:19


MAX_STORAGE_ITEM_SIZE​

• Const MAX_STORAGE_ITEM_SIZE: 256n

Defined in​

src/constants.ts:22


ADDR_BOUND​

• Const ADDR_BOUND: bigint

Defined in​

src/constants.ts:23


UDC​

• Const UDC: Object

Type declaration​

NameType
ADDRESSstring
ENTRYPOINTstring

Defined in​

src/constants.ts:51


DEFAULT_TRANSACTION_VERSION​

• Const DEFAULT_TRANSACTION_VERSION: V2 = ETransactionVersion.V2

Defined in​

src/constants.ts:56


DEFAULT_NETWORK_NAME​

• Const DEFAULT_NETWORK_NAME: SN_GOERLI = NetworkName.SN_GOERLI

Defined in​

src/constants.ts:58


RPC_DEFAULT_VERSION_TAG​

• Const RPC_DEFAULT_VERSION_TAG: "v0_6"

Defined in​

src/constants.ts:59


RPC_NODES​

• Const RPC_NODES: Object

Type declaration​

NameType
SN_GOERLIstring[]
SN_MAINstring[]
SN_SEPOLIAstring[]
getNode(network: NetworkName, index: number, rpcVersion?: string) => string

Defined in​

src/constants.ts:60