@ada-anvil/sdk-server
v0.4.0
Published
<!-- Improved compatibility of back to top link: See: https://github.com/othneildrew/Best-README-Template/pull/73 -->
Downloads
85
Keywords
Readme
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.