コンテンツにスキップ

parseIdempotencyRecord

このコンテンツはまだ日本語訳がありません。

parseIdempotencyRecord(input): IdempotencyRecord

Defined in: src/idempotency/record.ts:205

Parses a serialized record. Throws IdempotencyRecordVersionError on a version mismatch and IdempotencyRecordParseError on any structural / field error (so a corrupt entry can be dropped and the request treated as fresh — fund-correctness still rests on the on-chain nonce, not this cache).

Parameters

input

string

Returns

IdempotencyRecord

Example

import { parseIdempotencyRecord } from "kawasekit/idempotency";
const record = parseIdempotencyRecord(jsonFromStore);