Docs/API/paymentKey

paymentKey

functionAudit & helpers

Deterministic 16-char key for a payment (agent + recipient + amount) — used for spend holds and approvals.

signature
paymentKey(agent: string, recipient: string, amount: number): string

Parameters

NameTypeDescription
agentreqstringThe agent account id.
recipientreqstringThe counterparty.
amountreqnumberThe payment amount.

Returns

string

A 16-char hex digest.

Example

example
const key = paymentKey('0.0.A', '0.0.PROVIDER', 5); // → 'a1b2c3d4e5f60718'
VERIFIABLE SPEND-CONTROL   ·   ENFORCED ON-CHAIN   ·   AGENTS CAN PAY — NOW THEY CAN’T OVERSPEND   ·   CURB × HEDERA   ·   VERIFIABLE SPEND-CONTROL   ·   ENFORCED ON-CHAIN   ·   AGENTS CAN PAY — NOW THEY CAN’T OVERSPEND   ·   CURB × HEDERA   ·