Creates a new instance of the ChainPatrolClient class.
ChainPatrolClient
import { ChainPatrolClient } from "@chainpatrol/sdk"; const chainpatrol = new ChainPatrolClient({ apiKey: "<API_KEY>" });
Hide properties
The apiKey property is the API Key for accessing ChainPatrol’s APIs. We recommend using an environment variable to store your API Key.
apiKey
The baseUrl property is an optional property that specifies the API URL. You only need to specify this if you are using a proxy server.
baseUrl
Defaults to https://app.chainpatrol.io/v2/
https://app.chainpatrol.io/v2/
Was this page helpful?