Sparkscan API

Sparkscan SDK - Node.js

Simple promise-based client for server-side apps.

• npm: @sparkscan/api-node-sdk-client

Install

TerminalCode
npm install @sparkscan/api-node-sdk-client

Example

JavascriptCode
import { addressSummaryV1AddressAddressGet } from '@sparkscan/api-node-sdk-client'; (async () => { const addressInfo = await addressSummaryV1AddressAddressGet( 'sp1...xyz', // Satoshi's address { network: 'MAINNET' }, { headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' } } ); console.log(addressInfo); })();

Check the repository for error handling, pagination helpers and WebSocket utilities.

Last modified on