Options
All
  • Public
  • Public/Protected
  • All
Menu

Module StreamrClientConfig

Index

Important Type aliases

Other Type aliases

Important Variables

Important Type aliases

StrictStreamrClientOptions

StrictStreamrClientOptions: { auth: { apiKey?: string; ethereum?: EthereumConfig; password?: string; privateKey?: BytesLike; username?: string }; autoConnect: boolean; autoDisconnect: boolean; cache: { maxAge: number; maxSize: number }; dataUnion: { factoryMainnetAddress: EthereumAddress; factorySidechainAddress: EthereumAddress; minimumWithdrawTokenWei: BigNumber | number | string; payForTransport: boolean; templateMainnetAddress: EthereumAddress; templateSidechainAddress: EthereumAddress }; gapFillTimeout: number; groupKeys: Todo; id?: string; keyExchange: Todo; mainnet?: ConnectionInfo | string; maxGapRequests: number; maxPublishQueueSize: number; orderMessages: boolean; publishWithSignature: Todo; publisherStoreKeyHistory: boolean; restUrl: string; retryResendAfter: number; sidechain: ConnectionInfo & { chainId?: number }; storageNode: { address: EthereumAddress; url: string }; streamrNodeAddress: EthereumAddress; tokenAddress: EthereumAddress; tokenSidechainAddress: EthereumAddress; url: string; verifySignatures: Todo }

Type declaration

  • auth: { apiKey?: string; ethereum?: EthereumConfig; password?: string; privateKey?: BytesLike; username?: string }

    Authentication: identity used by this StreamrClient instance. Can contain member privateKey or (window.)ethereum

    • Optional apiKey?: string
    • Optional ethereum?: EthereumConfig
    • Optional password?: string
    • Optional privateKey?: BytesLike
    • Optional username?: string
  • autoConnect: boolean

    Automatically connect on first subscribe

  • autoDisconnect: boolean

    Automatically disconnect on last unsubscribe

  • cache: { maxAge: number; maxSize: number }
    • maxAge: number
    • maxSize: number
  • dataUnion: { factoryMainnetAddress: EthereumAddress; factorySidechainAddress: EthereumAddress; minimumWithdrawTokenWei: BigNumber | number | string; payForTransport: boolean; templateMainnetAddress: EthereumAddress; templateSidechainAddress: EthereumAddress }
    • factoryMainnetAddress: EthereumAddress
    • factorySidechainAddress: EthereumAddress
    • minimumWithdrawTokenWei: BigNumber | number | string

      Threshold value set in AMB configs, smallest token amount to pass over the bridge if someone else pays for the gas when transporting the withdraw tx to mainnet; otherwise the client does the transport as self-service and pays the mainnet gas costs

    • payForTransport: boolean
    • templateMainnetAddress: EthereumAddress
    • templateSidechainAddress: EthereumAddress
  • gapFillTimeout: number
  • groupKeys: Todo
  • Optional id?: string

    Custom human-readable debug id for client. Used in logging. Unique id will be generated regardless.

  • keyExchange: Todo
  • Optional mainnet?: ConnectionInfo | string
  • maxGapRequests: number
  • maxPublishQueueSize: number
  • orderMessages: boolean

    Attempt to order messages

  • publishWithSignature: Todo
  • publisherStoreKeyHistory: boolean
  • restUrl: string

    Core HTTP API calls go here

  • retryResendAfter: number
  • sidechain: ConnectionInfo & { chainId?: number }
  • storageNode: { address: EthereumAddress; url: string }
    • address: EthereumAddress
    • url: string
  • streamrNodeAddress: EthereumAddress

    joinPartAgent when using EE for join part handling

  • tokenAddress: EthereumAddress
  • tokenSidechainAddress: EthereumAddress
  • url: string

    Websocket server to connect to

  • verifySignatures: Todo

Other Type aliases

EthereumConfig

EthereumConfig: ExternalProvider | JsonRpcFetchFunc

StreamrClientOptions

StreamrClientOptions: Partial<Omit<StrictStreamrClientOptions, "dataUnion"> & { dataUnion: Partial<StrictStreamrClientOptions["dataUnion"]> }>

Important Variables

Const STREAM_CLIENT_DEFAULTS

STREAM_CLIENT_DEFAULTS: StrictStreamrClientOptions = ...

Generated using TypeDoc