provider.getInfo
CoreReturn public node identity, network information, supported methods, and the CKB address used to fund channels.
Signature
function getInfo(): Promise<GetInfoResult>Requires enable(). No additional confirmation prompt in the reference providers.
Parameters
This method accepts no parameters.
Response
nodeIdrequiredstringFiber node public key.
aliasrequiredstring | nullHuman-readable node alias when configured.
networkrequiredstringThe active Fiber/CKB network identifier.
ckbAddressrequiredstring | nullOn-chain address used to receive CKB and fund channels.
ckbBalancerequiredHex | nullOn-chain address capacity in shannons.
methodsrequiredCkbFiberMethod[]Capabilities this provider actually advertises.
providerKindstring | undefinedReference 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
WASM node
Maps to fiber-js nodeInfo(), derives the CKB address from the funding lock script, then queries testnet capacity.
Remote fnn
Maps to fnn node_info and performs the same funding-address derivation and capacity query in the extension background worker.