- WORD_BYTES :
number
- WORD_CHARS :
number
- UINT_BOUND :
BigInt
- MAX_UINT :
BigInt
- MIN_GAS_PRICE :
number
Min gas price for transaction
- TRANSACTION_GAS :
number
Gas use for pure transfer transaction
- TRANSACTION_STORAGE_LIMIT :
number
Storage limit for pure transfer transaction
- MAINNET_ID :
number
Mainnet chainId
- TESTNET_ID :
number
Testnet chainId
- ZERO_ADDRESS_HEX :
string
Zero address
- ZERO_HASH :
string
- KECCAK_EMPTY :
string
KECCAK (i.e. Keccak) hash of the empty bytes string.
Enum for epochNumber tag
Kind: global enum
Read only: true
Properties
Name | Type | Default |
---|---|---|
LATEST_MINED | string |
"latest_mined" |
LATEST_STATE | string |
"latest_state" |
LATEST_FINALIZED | string |
"latest_finalized" |
LATEST_CONFIRMED | string |
"latest_confirmed" |
LATEST_CHECKPOINT | string |
"latest_checkpoint" |
EARLIEST | string |
"earliest" |
Pending transaction status
Kind: global enum
Read only: true
Properties
Name | Type | Default |
---|---|---|
FUTURE_NONCE | string |
"futureNonce" |
NOT_ENOUGH_CASH | string |
"notEnoughCash" |
Enum for trace action types
Kind: global enum
Read only: true
Properties
Name | Type | Default |
---|---|---|
CALL | string |
"call" |
CREATE | string |
"create" |
CALL_RESULT | string |
"call_result" |
CREATE_RESULT | string |
"create_result" |
INTERNAL_TRANSFER_ACTION | string |
"internal_transfer_action" |
Enum for trace pocket types
Kind: global enum
Read only: true
Properties
Name | Type | Default |
---|---|---|
BALANCE | string |
"balance" |
STAKING_BALANCE | string |
"staking_balance" |
STORAGE_COLLATERAL | string |
"storage_collateral" |
SPONSOR_BALANCE_FOR_GAS | string |
"sponsor_balance_for_gas" |
SPONSOR_BALANCE_FOR_COLLATERAL | string |
"sponsor_balance_for_collateral" |
MINT_BURN | string |
"mint_burn" |
GAS_PAYMENT | string |
"gas_payment" |
Enum for trace call types
Kind: global enum
Read only: true
Properties
Name | Type | Default |
---|---|---|
NONE | string |
"none" |
CALL | string |
"call" |
CALL_CODE | string |
"callcode" |
DELEGATE_CALL | string |
"delegatecall" |
STATIC_CALL | string |
"staticcall" |
Enum for trace create types
Kind: global enum
Read only: true
Properties
Name | Type | Default |
---|---|---|
NONE | string |
"none" |
CREATE | string |
"create" |
CREATE2 | string |
"create2" |
Enum for space type
Kind: global enum
Read only: true
Properties
Name | Type | Default |
---|---|---|
NONE | string |
"none" |
NATIVE | string |
"native" |
EVM | string |
"evm" |
Enum for trace call status
Kind: global enum
Read only: true
Properties
Name | Type | Default |
---|---|---|
SUCCESS | string |
"success" |
REVERTED | string |
"reverted" |
FAIL | string |
"fail" |
Enum for transaction.status and receipt.outcomeStatus
Kind: global enum
Read only: true
Properties
Name | Type | Default |
---|---|---|
UNEXECUTE | number |
|
SUCCESS | number |
0 |
FAIL | number |
1 |
SKIP | number |
2 |
Enum for address types
Kind: global enum
Read only: true
Properties
Name | Type | Default |
---|---|---|
USER | string |
"user" |
CONTRACT | string |
"contract" |
BUILTIN | string |
"builtin" |
NULL | string |
"null" |
Min gas price for transaction
Kind: global constant
Example
> CONST.MIN_GAS_PRICE
1000000000
Gas use for pure transfer transaction
Kind: global constant
Example
> CONST.TRANSACTION_GAS
21000
Storage limit for pure transfer transaction
Kind: global constant
Example
> CONST.TRANSACTION_STORAGE_LIMIT
0
Mainnet chainId
Kind: global constant
Example
> CONST.MAINNET_ID
1029
Testnet chainId
Kind: global constant
Example
> CONST.TESTNET_ID
1
Zero address
Kind: global constant
Example
> ZERO_ADDRESS
0x0000000000000000000000000000000000000000
KECCAK (i.e. Keccak) hash of the empty bytes string.
Kind: global constant