Skip to content

GraphQL Configuration

The SDK connects to Drips' GraphQL Multi-Chain API for querying blockchain data and metadata.

Default Configuration

const sdk = createDripsSdk(blockchainClient);
// Uses the Drips production API deployment.

Custom GraphQL Endpoint

const sdk = createDripsSdk(blockchainClient, ipfsUploader, {
  graphql: {
    url: 'https://your-custom-drips-api.com/graphql',
  },
});

Authenticated Requests

const sdk = createDripsSdk(blockchainClient, ipfsUploader, {
  graphql: {
    url: 'https://your-custom-drips-api.com/graphql',
    apiKey: 'your-api-key',
  },
});