Skip to main content

sdk-server


Anvil Server SDK

Website

This library provides tools to interact with the Anvil backend API from Node.js applications.

Installation

npm install @ada-anvil/sdk-core @ada-anvil/sdk-server

Basic usage

// Import the SDK
import { anvil } from "@ada-anvil/sdk-client";

// Authenticate using your Anvil API key
anvil.config.authenticate(import.meta.env.VITE_ANVIL_API_KEY);

// Use the exchange service
const exchange = await anvil.exchange.getPending({ exchangeId: 33, address: "<ADDRESS>" });

Services

Refer to the type definitions for a complete list of available services and methods.

core (flat)

The core services provided by the Anvil SDK Core.