Namespace: constants
Utils
Type Aliases​
BaseUrl​
Ƭ BaseUrl: ValuesType<typeof BaseUrl>
Defined in​
NetworkName​
Ƭ NetworkName: ValuesType<typeof NetworkName>
Defined in​
StarknetChainId​
Ƭ StarknetChainId: ValuesType<typeof StarknetChainId>
Defined in​
TransactionHashPrefix​
Ƭ TransactionHashPrefix: ValuesType<typeof TransactionHashPrefix>
Defined in​
SupportedRpcVersion​
Ƭ SupportedRpcVersion: ValuesType<typeof SupportedRpcVersion>
Defined in​
SupportedTransactionVersion​
Ƭ SupportedTransactionVersion: typeof V2 | typeof V3
Defined in​
Variables​
IS_BROWSER​
• Const IS_BROWSER: boolean
Defined in​
TEXT_TO_FELT_MAX_LEN​
• Const TEXT_TO_FELT_MAX_LEN: 31
Cairo Felt support storing max 31 character
Defined in​
TRANSACTION_VERSION​
• TRANSACTION_VERSION: Object
Type declaration​
| Name | Type | Description | 
|---|---|---|
V0 | "0x0" | Deprecated Starknet 0.14 will not support this transaction | 
V1 | "0x1" | Deprecated Starknet 0.14 will not support this transaction | 
V2 | "0x2" | Deprecated Starknet 0.14 will not support this transaction | 
V3 | "0x3" | - | 
F0 | "0x100000000000000000000000000000000" | Deprecated Starknet 0.14 will not support this transaction | 
F1 | "0x100000000000000000000000000000001" | Deprecated Starknet 0.14 will not support this transaction | 
F2 | "0x100000000000000000000000000000002" | Deprecated Starknet 0.14 will not support this transaction | 
F3 | "0x100000000000000000000000000000003" | - | 
Defined in​
ZERO​
• Const ZERO: 0n
Defined in​
MASK_250​
• Const MASK_250: bigint
Defined in​
MASK_31​
• Const MASK_31: bigint
Defined in​
API_VERSION​
• Const API_VERSION: 0n
Defined in​
PRIME​
• Const PRIME: bigint
Defined in​
MAX_STORAGE_ITEM_SIZE​
• Const MAX_STORAGE_ITEM_SIZE: 256n
Defined in​
ADDR_BOUND​
• Const ADDR_BOUND: bigint
Defined in​
RANGE_FELT​
• Const RANGE_FELT: Object
Type declaration​
| Name | Type | 
|---|---|
min | bigint | 
max | bigint | 
Defined in​
RANGE_I128​
• Const RANGE_I128: Object
Type declaration​
| Name | Type | 
|---|---|
min | bigint | 
max | bigint | 
Defined in​
RANGE_U128​
• Const RANGE_U128: Object
Type declaration​
| Name | Type | 
|---|---|
min | bigint | 
max | bigint | 
Defined in​
UDC​
• Const UDC: Object
Type declaration​
| Name | Type | 
|---|---|
ADDRESS | "0x041a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf" | 
ENTRYPOINT | "deployContract" | 
Defined in​
OutsideExecutionCallerAny​
• Const OutsideExecutionCallerAny: "0x414e595f43414c4c4552"
Defined in​
SNIP9_V1_INTERFACE_ID​
• Const SNIP9_V1_INTERFACE_ID: "0x68cfd18b92d1907b8ba3cc324900277f5a3622099431ea85dd8089255e4181"
Defined in​
SNIP9_V2_INTERFACE_ID​
• Const SNIP9_V2_INTERFACE_ID: "0x1d1144bb2138366ff28d8e9ab57456b1d332ac42196230c3a602003c89872"
Defined in​
HARDENING_BYTE​
• Const HARDENING_BYTE: 128
Defined in​
HARDENING_4BYTES​
• Const HARDENING_4BYTES: 2147483648n
Defined in​
BaseUrl​
• Const BaseUrl: Object
Type declaration​
| Name | Type | 
|---|---|
SN_MAIN | "https://alpha-mainnet.starknet.io" | 
SN_SEPOLIA | "https://alpha-sepolia.starknet.io" | 
Defined in​
NetworkName​
• Const NetworkName: Object
Type declaration​
| Name | Type | 
|---|---|
SN_MAIN | "SN_MAIN" | 
SN_SEPOLIA | "SN_SEPOLIA" | 
Defined in​
StarknetChainId​
• Const StarknetChainId: Object
Type declaration​
| Name | Type | 
|---|---|
SN_MAIN | "0x534e5f4d41494e" | 
SN_SEPOLIA | "0x534e5f5345504f4c4941" | 
Defined in​
TransactionHashPrefix​
• Const TransactionHashPrefix: Object
Type declaration​
| Name | Type | 
|---|---|
DECLARE | "0x6465636c617265" | 
DEPLOY | "0x6465706c6f79" | 
DEPLOY_ACCOUNT | "0x6465706c6f795f6163636f756e74" | 
INVOKE | "0x696e766f6b65" | 
L1_HANDLER | "0x6c315f68616e646c6572" | 
Defined in​
SupportedRpcVersion​
• Const SupportedRpcVersion: Object
dot format rpc versions
Type declaration​
| Name | Type | 
|---|---|
0.7.1 | "0.7.1" | 
0.8.1 | "0.8.1" | 
v0_7_1 | "0.7.1" | 
v0_8_1 | "0.8.1" | 
Defined in​
DEFAULT_GLOBAL_CONFIG​
• Const DEFAULT_GLOBAL_CONFIG: Object
Type declaration​
| Name | Type | 
|---|---|
legacyMode | boolean | 
logLevel | LogLevel | 
rpcVersion | SupportedRpcVersion | 
transactionVersion | SupportedTransactionVersion | 
feeMarginPercentage | FeeMarginPercentage | 
fetch | any | 
websocket | any | 
Defined in​
RPC_DEFAULT_NODES​
• Const RPC_DEFAULT_NODES: Object
Type declaration​
| Name | Type | 
|---|---|
SN_MAIN | readonly ["https://starknet-mainnet.public.blastapi.io/rpc/"] | 
SN_SEPOLIA | readonly ["https://starknet-sepolia.public.blastapi.io/rpc/"] | 
Defined in​
PAYMASTER_RPC_NODES​
• Const PAYMASTER_RPC_NODES: Object
Type declaration​
| Name | Type | 
|---|---|
SN_MAIN | readonly ["https://starknet.paymaster.avnu.fi"] | 
SN_SEPOLIA | readonly ["https://sepolia.paymaster.avnu.fi"] | 
Defined in​
SYSTEM_MESSAGES​
• Const SYSTEM_MESSAGES: Object
Type declaration​
| Name | Type | 
|---|---|
legacyTxWarningMessage | string | 
legacyTxRPC08Message | string | 
SWOldV3 | string | 
channelVersionMismatch | string | 
unsupportedSpecVersion | string | 
maxFeeInV3 | string |