Skip to content

createLegacyTransferBuyListPolicies

createLegacyTransferBuyListPolicies(params): readonly [Policy, Policy]

Defined in: src/policy/legacy-transfer-buy-list.ts:69

Rebuild the policy bundle of a buy-list session key issued by kawasekit ≤ 0.10.x — so that it can be revoked.

Parameters

params

CreateLegacyTransferBuyListPoliciesParams

Returns

readonly [Policy, Policy]

Example

import { createLegacyTransferBuyListPolicies, revokeSessionKey } from "kawasekit";
// the SAME inputs the key was issued with, in the same order
const policies = createLegacyTransferBuyListPolicies({ jpycAddress, merchants, maxPerTransfer, validUntil });
await revokeSessionKey({ ...revokeParams, policies });