Caravan Documentation
    Preparing search index...

    Function callBitcoind

    • Makes a JSON-RPC call to a Bitcoin node

      This is our main workhorse for talking to bitcoind. It handles authentication and formats requests in the way bitcoind expects them.

      Type Parameters

      • T

      Parameters

      • url: string

        The URL of the Bitcoin node

      • auth: AxiosBasicCredentials

        Basic auth credentials

      • method: string

        The RPC method to call

      • params: unknown[] = []

        Parameters for the RPC method (optional)

      Returns Promise<RPCResponse<T>>

      Promise resolving to the RPC response