golem-base-sdk
    Preparing search index...

    Function createClient

    • Creates a read-write client for a golem-base op-geth node. This client supports all available operations, including writing new entities and fetching metadata.

      Parameters

      • chainId: number

        The numeric chain ID of the Ethereum-compatible network you're connecting to.

      • accountData: AccountData

        An object containing the private key or account credentials for signing transactions.

      • rpcUrl: string

        The HTTP endpoint of the golem-base op-geth node.

      • wsUrl: string

        The WebSocket endpoint of the same node, used for event listening or subscriptions.

      • logger: Logger<ILogObj> = ...

        A pino-like logger instance for structured logs. Defaults to a minimal hidden logger if not provided.

      Returns Promise<GolemBaseClient>

      A Promise that resolves to a GolemBaseClient instance.