FFiber WebLN
API / Provider / provider.getInfo

provider.getInfo

Core

Return public node identity, network information, supported methods, and the CKB address used to fund channels.

Signature

function getInfo(): Promise<GetInfoResult>
PERMISSION

Requires enable(). No additional confirmation prompt in the reference providers.

Parameters

This method accepts no parameters.

Response

NameTypeDescription
nodeIdrequiredstring

Fiber node public key.

aliasrequiredstring | null

Human-readable node alias when configured.

networkrequiredstring

The active Fiber/CKB network identifier.

ckbAddressrequiredstring | null

On-chain address used to receive CKB and fund channels.

ckbBalancerequiredHex | null

On-chain address capacity in shannons.

methodsrequiredCkbFiberMethod[]

Capabilities this provider actually advertises.

providerKindstring | undefined

Reference implementation identifier such as wasm-node or remote-fnn.

Example

const fiber = await requestProvider();
const info = await fiber.getInfo();

console.log(info.nodeId, info.providerKind);
console.log(info.ckbAddress, info.ckbBalance);

Provider behavior

W

WASM node

Maps to fiber-js nodeInfo(), derives the CKB address from the funding lock script, then queries testnet capacity.

R

Remote fnn

Maps to fnn node_info and performs the same funding-address derivation and capacity query in the extension background worker.

Errors