sdk/client/ClientImpl.ts
ClientImpl overview
Table of contents
constructors
createClient
Factory function producing a client instance from configuration parameters.
Returns different client types depending on what configuration is provided: provider and wallet → full-featured client; provider only → query and submission; wallet only → signing with network metadata; network only → minimal context with combinators.
Signature
export declare function createClient(config: {
network?: NetworkId
provider: ProviderConfig
wallet: ReadOnlyWalletConfig
slotConfig?: Time.SlotConfig
}): ReadOnlyClient
export declare function createClient(config: {
network?: NetworkId
provider: ProviderConfig
wallet: SeedWalletConfig
slotConfig?: Time.SlotConfig
}): SigningClient
export declare function createClient(config: {
network?: NetworkId
provider: ProviderConfig
wallet: PrivateKeyWalletConfig
slotConfig?: Time.SlotConfig
}): SigningClient
export declare function createClient(config: {
network?: NetworkId
provider: ProviderConfig
wallet: ApiWalletConfig
slotConfig?: Time.SlotConfig
}): SigningClient
export declare function createClient(config: { network?: NetworkId; provider: ProviderConfig }): ProviderOnlyClient
export declare function createClient(config: {
network?: NetworkId
wallet: ReadOnlyWalletConfig
}): ReadOnlyWalletClient
export declare function createClient(config: { network?: NetworkId; wallet: SeedWalletConfig }): SigningWalletClient
export declare function createClient(config: {
network?: NetworkId
wallet: PrivateKeyWalletConfig
}): SigningWalletClient
export declare function createClient(config: { network?: NetworkId; wallet: ApiWalletConfig }): ApiWalletClient
export declare function createClient(config?: { network?: NetworkId }): MinimalClientAdded in v2.0.0