Preparing search index...
The search index is not available
@lit-protocol/js-sdk
@lit-protocol/js-sdk
auth-browser/src
ethConnect
getChainId
Function getChainId
Get chain id of the current network
get
Chain
Id
(
chain
,
web3
)
:
Promise
<
IEither
<
number
>
>
Parameters
chain
:
string
web3
:
Web3Provider
Returns
Promise
<
IEither
<
number
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
packages
access-control-conditions
src
index.ts
canonicalAccessControlConditionFormatter
canonicalCosmosConditionFormatter
canonicalEVMContractConditionFormatter
canonicalResourceIdFormatter
canonicalSolRpcConditionFormatter
canonicalUnifiedAccessControlConditionFormatter
formatAtom
formatSol
hashAccessControlConditions
hashEVMContractConditions
hashResourceId
hashResourceIdForSigning
hashSolRpcConditions
hashUnifiedAccessControlConditions
humanizeAccessControlConditions
humanizeComparator
humanizeCosmosConditions
humanizeEvmBasicAccessControlConditions
humanizeEvmContractConditions
humanizeSolRpcConditions
humanizeUnifiedAccessControlConditions
validateAccessControlConditionsSchema
validateEVMContractConditionsSchema
validateSolRpcConditionsSchema
validateUnifiedAccessControlConditionsSchema
auth-browser
src
index.ts
disconnectWeb3
cosmosConnect
ethConnect
solConnect
checkAndSignAuthMessage
auth-helpers
src
index.ts
LitAccessControlConditionResource
LitActionResource
LitPKPResource
LitRLIResource
RecapSessionCapabilityObject
ResourceAbilityRequestBuilder
AuthSig
AttenuationsObject
CID
LitResourceAbilityRequest
PlainJSON
addRecapToSiweMessage
createCapacityCreditsResourceData
createSiweMessage
createSiweMessageWithCapacityDelegation
createSiweMessageWithRecaps
decode
extract
generateAuthSig
newSessionCapabilityObject
parseLitResource
sanitizeSiweMessage
constants
src
index.ts
LitError
IEitherError
IEitherSuccess
AUTH_METHOD_SCOPE_TYPE
AUTH_METHOD_SCOPE_VALUES
AUTH_METHOD_TYPE_TYPE
AUTH_METHOD_TYPE_VALUES
EITHER_TYPE_TYPE
EITHER_TYPE_VALUES
IEither
LIT_ABILITY_TYPE
LIT_ABILITY_VALUES
LIT_CURVE_TYPE
LIT_CURVE_VALUES
LIT_NAMESPACE_TYPE
LIT_NAMESPACE_VALUES
LIT_NETWORK_TYPES
LIT_NETWORK_VALUES
LIT_RECAP_ABILITY_TYPE
LIT_RECAP_ABILITY_VALUES
LIT_RESOURCE_PREFIX_TYPE
LIT_RESOURCE_PREFIX_VALUES
LOG_LEVEL_TYPE
LOG_LEVEL_VALUES
PROVIDER_TYPE_TYPE
PROVIDER_TYPE_VALUES
RELAY_AUTH_STATUS_TYPE
RELAY_AUTH_STATUS_VALUES
STAKING_STATES_TYPE
STAKING_STATES_VALUES
VMTYPE_TYPE
VMTYPE_VALUES
ABI_ERC20
ABI_LIT
ALL_LIT_CHAINS
AUTH_METHOD_SCOPE
AUTH_METHOD_TYPE
AUTH_METHOD_TYPE_IDS
AUTH_SIGNATURE_BODY
AuthMethodScope
AuthMethodType
CENTRALISATION_BY_NETWORK
EITHER_TYPE
FALLBACK_IPFS_GATEWAYS
GLOBAL_OVERWRITE_IPFS_CODE_BY_NETWORK
HTTP
HTTP_BY_NETWORK
HTTPS
InitError
InvalidAccessControlConditions
InvalidArgumentException
InvalidBooleanException
InvalidEthBlockhash
InvalidNodeAttestation
InvalidParamType
InvalidSessionSigs
InvalidSignatureError
InvalidUnifiedConditionType
LIT_ABILITY
LIT_ACTION_IPFS_HASH
LIT_AUTH_SIG_CHAIN_KEYS
LIT_CHAINS
LIT_COSMOS_CHAINS
LIT_CURVE
LIT_ENDPOINT
LIT_ENDPOINT_VERSION
LIT_ERROR
LIT_ERROR_CODE
LIT_ERROR_KIND
LIT_EVM_CHAINS
LIT_NAMESPACE
LIT_NETWORK
LIT_NETWORKS
LIT_RECAP_ABILITY
LIT_RESOURCE_PREFIX
LIT_RPC
LIT_SESSION_KEY_URI
LIT_SVM_CHAINS
LitAbility
LitErrorKind
LitNamespace
LitNetwork
LitNodeClientBadConfigError
LitNodeClientNotReadyError
LitRecapAbility
LitResourcePrefix
LOCAL_STORAGE_KEYS
LocalStorageItemNotFoundException
LocalStorageItemNotRemovedException
LocalStorageItemNotSetException
LOG_LEVEL
LogLevel
METAMASK_CHAIN_INFO
METAMASK_CHAIN_INFO_BY_NETWORK
metamaskChainInfo
MintingNotSupported
MultiError
NETWORK_CONTEXT_BY_NETWORK
NETWORK_PUB_KEY
NetworkError
NodeError
NodejsException
NoValidShares
NoWalletException
ParamNullError
ParamsMissingError
PKP_CLIENT_SUPPORTED_CHAINS
PROVIDER_TYPE
ProviderType
RELAY_AUTH_STATUS
RelayAuthStatus
RELAYER_URL_BY_NETWORK
RemovedFunctionError
RPC_URL_BY_NETWORK
SIWE_DELEGATION_URI
STAKING_STATES
StakingStates
SYMM_KEY_ALGO_PARAMS
TransactionError
UnauthorizedException
UnknownDecryptionAlgorithmTypeError
UnknownError
UnknownSignatureError
UnknownSignatureType
UnsupportedChainException
UnsupportedMethodError
version
VMTYPE
WalletSignatureNotFoundError
WasmInitError
WrongNetworkException
WrongParamFormat
ELeft
ERight
contracts-sdk
src
index.ts
LitContracts
asyncForEachReturn
calculateUTCMidnightExpiration
convertRequestsPerDayToPerSecond
requestsToDay
requestsToKilosecond
requestsToSecond
core
src
index.ts
LitCore
LitNodeClientConfigWithDefaults
composeLitUrl
crypto
src
index.ts
BlsSignatureShare
checkSevSnpAttestation
combineEcdsaShares
combineSignatureShares
computeHDPubKey
decryptWithSignatureShares
encrypt
generateSessionKeyPair
verifyAndDecryptWithSignatureShares
verifySignature
encryption
src
index.ts
decryptFromJson
decryptToFile
decryptToString
decryptToUint8Array
encryptFile
encryptString
encryptToJson
encryptUint8Array
lit-auth-client
src
index.ts
AppleProvider
BaseProvider
DiscordProvider
EthWalletProvider
GoogleProvider
LitRelay
StytchAuthFactorOtpProvider
StytchOtpProvider
WebAuthnProvider
getAuthIdByAuthMethod
getProviderFromUrl
isSignInRedirect
lit-node-client-nodejs
src
index.ts
base64StringToBlob
blobToBase64String
hashResourceIdForSigning
humanizeAccessControlConditions
LitNodeClientNodeJs
uint8arrayFromString
uint8arrayToString
lit-node-client
src
index.ts
checkAndSignAuthMessage
disconnectWeb3
ethConnect
hashResourceIdForSigning
humanizeAccessControlConditions
LitNodeClient
LitNodeClientNodeJs
base64StringToBlob
blobToBase64String
uint8arrayFromString
uint8arrayToString
logger
src
index.ts
LogLevel
Logger
LogManager
messageHandler
misc-browser
src
index.ts
base64StringToBlob
blobToBase64String
downloadFile
fileToDataUrl
getStorageItem
injectViewerIFrame
removeStorageItem
setStorageItem
misc
src
index.ts
AccessControlConditionsValidatorProps
AuthMaterialValidatorProps
ParamsValidatorsType
paramsValidators
bootstrapLogManager
checkIfAuthSigRequiresChainParam
checkSchema
checkType
decimalPlaces
defaultMintClaimCallback
derivedAddresses
findMostCommonResponse
formatSessionSigs
genRandomPath
getEnv
getIpAddress
getLoggerbyId
getVarType
hexPrefixed
is
isBrowser
isNode
isSupportedLitNetwork
isTokenOperator
isValidBooleanExpression
log
logError
logErrorWithRequestId
logWithRequestId
mostCommonString
normalizeAndStringify
numberToHex
printError
publicKeyConvert
removeHexPrefix
safeParams
sendRequest
setMiscLitConfig
sortedObject
throwRemovedFunctionError
validateSessionSig
validateSessionSigs
nacl
src
index.ts
nacl
pkp-base
src
index.ts
PKPBase
pkp-cosmos
src
index.ts
Long
PKPCosmosWallet
Long
Long
pkp-ethers
src
index.ts
PKPEthersWallet
SupportedETHSigningMethods
methodHandlers
ethRequestHandler
getTypedDataVersionInfo
isEthRequest
personalSignHandler
sendRawTransactionHandler
sendTransactionHandler
signHandler
signTypedData
signTypedDataHandler
signTypedDataLegacy
validateAddressesMatch
validateSignature
pkp-sui
src
index.ts
PKPSuiWallet
pkp-walletconnect
src
index.ts
PKPWalletConnect
InitWalletConnectParams
types
src
index.ts
ABIParams
AccsOperatorParams
AuthCallbackParams
AuthenticationProps
AuthMethod
AuthSig
BaseAuthenticateOptions
BaseJsonPkpSignRequest
BaseMintCapacityContext
BaseProviderGetSessionSigsProps
BaseProviderOptions
BaseProviderSessionSigsParams
BaseSiweMessage
BlockHashErrorResponse
BlsResponseData
BlsSignatureShare
CallRequest
Capability
CapacityCreditsReq
CapacityCreditsRes
CapacityDelegationFields
CapacityDelegationRequest
ClaimKeyResponse
CombinedECDSASignature
CommonGetSessionSigsProps
CosmosAuthSig
CreateCustomAuthMethodRequest
DecryptedData
DecryptFileProps
DecryptFromJsonProps
DecryptRequest
DecryptRequestBase
DecryptResponse
EncryptedFile
EncryptFileRequest
EncryptionSignRequest
EncryptRequest
EncryptResponse
EncryptSdkParams
EncryptStringRequest
EncryptToJsonPayload
EncryptToJsonProps
EncryptUint8ArrayRequest
EthBlockhashInfo
EthWalletAuthenticateOptions
EthWalletProviderOptions
ExclusiveLitContractContext
ExecuteJsAdvancedOptions
ExecuteJsNoSigningResponse
ExecuteJsResponse
ExecuteJsResponseBase
FormattedMultipleAccs
GasLimitParam
GetPkpSessionSigs
GetSessionSigsProps
GetSigningShareForDecryptionRequest
GetSignSessionKeySharesProp
GetWalletSigProps
HandshakeWithNode
HumanizedAccsProps
ILitNodeClient
ILitResource
IpfsOptions
IProvider
IRelay
IRelayFetchResponse
IRelayMintResponse
IRelayPKP
IRelayPollingEvent
IRelayPollStatusResponse
IRelayRequestData
ISessionCapabilityObject
JsonAccsRequest
JsonEncryptionRetrieveRequest
JsonExecutionRequest
JsonExecutionRequestTargetNode
JsonExecutionSdkParams
JsonExecutionSdkParamsTargetNode
JsonHandshakeResponse
JsonPKPClaimKeyRequest
JsonPkpSignRequest
JsonPkpSignSdkParams
JsonSignChainDataRequest
JsonSigningResourceId
JsonSigningRetrieveRequest
JsonSigningStoreRequest
JsonSignSessionKeyRequestV1
LitActionResponseStrategy
LitActionSdkParams
LITChainRequiredProps
LitClientSessionManager
LitContract
LitContractContext
LitContractResolverContext
LitEndpoint
LitNodeClientConfig
LitNodePromise
LitRelayConfig
LoginUrlParams
MintCapacityCreditsContext
MintCapacityCreditsPerDay
MintCapacityCreditsPerKilosecond
MintCapacityCreditsPerSecond
MintCapacityCreditsRes
MintNextAndAddAuthMethods
MintRequestBody
MintWithAuthParams
MintWithAuthResponse
MultipleAccessControlConditions
NodeAttestation
NodeBlsSigningShare
NodeClientErrorV1
NodeCommandResponse
NodeCommandServerKeysResponse
NodeErrorV1
NodeErrorV3
NodeLog
NodePromiseResponse
NodeResponse
NodeShare
OAuthProviderOptions
OtpAuthenticateOptions
OtpEmailCustomizationOptions
OtpProviderOptions
OtpSessionResult
ParsedSessionMessage
ParsedSignedMessage
PKPBaseDefaultParams
PKPBaseProp
PKPClientHelpers
PKPClientProp
PKPCosmosWalletProp
PkpSignedData
PKPSignShare
PKPWallet
RejectedNodePromises
RPCUrls
SendNodeCommand
SessionKeyCache
SessionKeyPair
SessionKeySignedMessage
SessionRequestBody
SessionSigningTemplate
SessionSigsOrAuthSig
SessionSigsProp
Signature
SignatureData
SignedChainDataToken
SignedData
SignerLike
SigningAccessControlConditionJWTPayload
SigningAccessControlConditionRequest
SignInWithOTPParams
SignInWithStytchOTPParams
SignSessionKeyProp
SignSessionKeyResponse
SignWithECDSA
SigResponse
SigShare
SolanaAuthSig
StorageProvider
StytchOtpAuthenticateOptions
StytchOtpProviderOptions
SuccessNodePromises
TokenInfo
WebAuthnAuthenticationVerificationParams
WebAuthnProviderOptions
WithCapacityDelegation
WithRecap
AcceptedFileType
AccessControlConditions
AccsCOSMOSParams
AccsDefaultParams
AccsEVMParams
AccsParams
AccsSOLV2Params
AttenuationsObject
AuthCallback
AuthenticateOptions
AuthenticatorAttachment
Chain
CID
ClaimProcessor
ClaimRequest
ClaimResult
ClaimsList
ClientClaimProcessor
ConditionItem
ConditionType
ContractName
CosmosWalletType
CustomNetwork
EncryptedSymmetricKey
EncryptToJsonDataType
EpochInfo
EvmContractConditions
GetLitActionSessionSigs
IRelayAuthStatus
JsonRequest
KV
LIT_NETWORKS_KEYS
LitAbility
LITChain
LITCosmosChain
LITEVMChain
LitResourceAbilityRequest
LitResourcePrefix
LITSVMChain
MintCallback
NodeClientErrorV0
PKPEthersWalletProp
PlainJSON
RelayClaimProcessor
ResponseStrategy
SessionSigs
SessionSigsMap
SolRpcConditions
StytchToken
SupportedJsonRequests
SymmetricKey
UnifiedAccessControlConditions
NodeClientErrorV0
uint8arrays
src
index.ts
uint8arrayFromString
uint8arrayToString
uint8ArrayToBase64
wasm
src
index.ts
BlsVariant
EcdsaVariant
blsCombine
blsDecrypt
blsEncrypt
blsVerify
ecdsaCombine
ecdsaCombnieAndVerify
ecdsaDeriveKey
ecdsaVerify
sevSnpGetVcekUrl
sevSnpVerify
wrapped-keys-lit-actions
src
index.ts
exportPrivateKey
generateEncryptedEthereumPrivateKey
generateEncryptedSolanaPrivateKey
signMessageWithEthereumEncryptedKey
signMessageWithSolanaEncryptedKey
signTransactionWithEthereumEncryptedKey
signTransactionWithSolanaEncryptedKey
batchGenerateEncryptedKeys
litActionRepository
litActionRepositoryCommon
rawActionFunctions
wrapped-keys
src
index.ts
ApiParamsSupportedNetworks
BaseApiParams
EthereumLitTransaction
ExportPrivateKeyResult
GeneratePrivateKeyResult
ImportPrivateKeyParams
ImportPrivateKeyResult
SerializedTransaction
SignTransactionParams
SignTransactionParamsSupportedEvm
SignTransactionParamsSupportedSolana
StoredKeyData
StoredKeyMetadata
StoreEncryptedKeyBatchResult
StoreEncryptedKeyResult
ExportPrivateKeyParams
GeneratePrivateKeyParams
GetEncryptedKeyDataParams
ListEncryptedKeyMetadataParams
LitActionCodeRepository
LitActionCodeRepositoryCommon
LitActionCodeRepositoryEntry
SignMessageWithEncryptedKeyParams
SignTransactionWithEncryptedKeyParams
StoreEncryptedKeyBatchParams
StoreEncryptedKeyParams
SupportedNetworks
api
config
constants
Get chain id of the current network