
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@agentpay-dev/core
Advanced tools
Core Fiber Network RPC client and protocol types for AgentPay �?BTC-native Agent payment protocol
Core library for the AgentPay BTC-native Agent payment protocol
npm install @agentpay-dev/core
import { FiberRpcClient, createLogger, TESTNET_ASSETS } from '@agentpay-dev/core';
// Fiber RPC
const fiber = new FiberRpcClient({
rpcUrl: 'http://127.0.0.1:8227',
timeoutMs: 30000,
maxRetries: 2,
});
const info = await fiber.nodeInfo();
const { invoice_address } = await fiber.newInvoice({
amount: '100000000',
currency: 'Fibt',
});
// Logger
const log = createLogger({ name: 'my-agent', version: '1.0.0' });
log.info({ invoice: invoice_address }, 'Invoice created');
| Method | Module | Description |
|---|---|---|
openChannel() | Channel | Open a payment channel |
listChannels() | Channel | List all channels |
newInvoice() | Invoice | Create a Fiber invoice (including Hold Invoice) |
sendPayment() | Payment | Send a payment to an invoice |
settleInvoice() | Invoice | Settle a Hold Invoice with preimage |
sendBtc() | Cch | Cross-chain payment to BTC Lightning |
nodeInfo() | Info | Get node status |
graphNodes() | Graph | Browse network topology |
FiberRpcError �?RPC-level errors from the Fiber nodeFiberTimeoutError �?Request timeout (configurable, default 30s)FiberValidationError �?Input validation failuresMIT
FAQs
Core Fiber Network RPC client and protocol types for AgentPay �?BTC-native Agent payment protocol
We found that @agentpay-dev/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.