provider.keysend
OptionalSend a direct payment to a Fiber node public key without first creating an invoice.
Signature
function keysend(targetPubkey: string, amount: Hex): Promise<SendPaymentResult>PERMISSION
Requires enable(), explicit payment confirmation, and provider unlock when configured.
Parameters
NameTypeDescription
targetPubkeyrequiredstringCompressed public key of the destination Fiber node, with or without a 0x prefix.
amountrequiredHexDirect-payment amount in hex-encoded shannons for current native CKB flows.
Response
NameTypeDescription
paymentHashrequiredHexPayment identifier.
statusrequiredstringNode-reported payment state.
feerequiredHexRouting fee.
Example
if (fiber.keysend) {
await fiber.keysend(peerPubkey, "0x5f5e100");
}Provider behavior
W
WASM node
Calls fiber-js sendPayment() with target_pubkey, amount, and keysend: true.
R
Remote fnn
Calls fnn send_payment with the equivalent keysend parameters.