ForgingBlock provides official client libraries to simplify integration with the ForgingBlock API.
Node.js
Use the official SDK for Node.js — a minimal, promise-based client that wraps ForgingBlock API endpoints.
Install
npm install forgingblock.jsInitialize
import { forgingblock } from 'forgingblock.js'
const sdk = forgingblock({
apiKey: process.env.FORGINGBLOCK_API_KEY,
baseUrl: 'https://api.forgingblock.io'
})Examples
// Create an order
const order = await sdk.orders.create({
price_amount: '10.00',
price_currency: 'USD',
title: 'Test order',
description: 'Example payment'
})
// List orders
const list = await sdk.orders.list({ page: 1 })
// Get order details
const detail = await sdk.orders.get(order.id)Optional Libraries
You can use any HTTP client you prefer to call the ForgingBlock API directly if you do not need the SDK.
All SDK methods are simple wrappers around standard REST endpoints, so migrating or integrating with your own HTTP layer is straightforward.