Skip to content
SwapKit is a powerful suite of tools for building blockchain applications.

SKConfig

const SKConfig: object

Defined in: packages/helpers/src/modules/swapKitConfig.ts:115

get: <T>(key) => SwapKitConfigStore[T]

T extends "apiKeys" | "apis" | "chains" | "wallets" | "explorerUrls" | "nodeUrls" | "rpcUrls" | "envs" | "integrations"

T

SwapKitConfigStore[T]

getState: () => SwapKitConfigStore = swapKitState.getState

SwapKitConfigStore

set: <T>(config) => void

T extends SKConfigState

T

void

setApiKey: <T>(key, apiKey) => void

T extends "blockchair" | "kado" | "keepKey" | "swapKit" | "walletConnectProjectId"

T

string

void

setEnv: <T>(key, value) => void

T extends "apiUrl" | "devApiUrl" | "isDev" | "isStagenet"

T

object[T]

void

setExplorerUrl: <T>(chain, url) => void

T extends Chain

T

string

void

setIntegrationConfig: <T>(integration, config) => void

T extends keyof SKConfigIntegrations

T

SKConfigIntegrations[T]

void

setNodeUrl: <T>(chain, url) => void

T extends Maya | THORChain | THORChain | Maya

T

string

void

setRpcUrl: <T>(chain, url) => void

T extends Chain | StagenetChain

T

string

void