SDK reference — @dynamoprotocol/sdk 2.1.0

GENERATED from the published 2.1.0 wire-client surface by

docs/tools/generate-sdk-reference.mjs (make docs-build). Do not edit by

hand — edits are overwritten and drift fails the build. Curated guides live

beside this page: budgets, streams,

session keys, holdback dial,

batch, subscribe.

The SDK public surface is a versioned artifact (rule 18): additive changes bump the minor version with a CHANGELOG entry; breaking changes are forbidden without a written deprecation note. This page documents SDK_INTERFACE_VERSION 2.1.0 — the thin wire client: it holds credentials, manages budgets and streams through your instance's versioned owner-api, and verifies what it receives; the engine and every enforcement decision live with the core it talks to.

@dynamoprotocol/sdk (single entry point)

ExportKind
AllowanceCredentialtype
AllowanceCredentialPayloadtype
AllowanceVerifyOptionstype
AllowanceVerifyResulttype
amountfunction
Amounttype
Budgetclass / constructor
BudgetSpectype
CheckpointRecordtype
ConsumeReceipttype
Dynamoclass / constructor
DynamoConfigtype
FinalityStatetype
formatMicroUsdfunction
FundingModetype
HaltErrorclass / constructor
HaltReasontype
HeadroomInfotype
isValidRequestReffunction
microUsdfunction
newNoncefunction
NotFoundErrorclass / constructor
NotYetImplementedErrorclass / constructor
OWNER_API_VERSIONconstant ("1.1.0")
parseMicroUsdfunction
SDK_INTERFACE_VERSIONconstant ("2.1.0")
SdkConfigErrorclass / constructor
SdkErrorclass / constructor
Sessiontype
SessionKeyclass / constructor
SessionStreamSummarytype
SessionTotalstype
SettlementViewtype
StateErrorclass / constructor
Streamclass / constructor
StreamSpectype
TickReceipttype
unitsfunction
Unitstype
usdfunction
VerificationErrorclass / constructor
verifyAllowanceCredentialfunction
voucherDigestfunction
VoucherDomainParamstype
VoucherStructtype
voucherTypedDatafunction
WireErrorclass / constructor
x402namespace / object
X402Errorclass / constructor

x402 namespace members

ExportKind
x402.AllowancePayloadSchemazod schema
x402.ExactPayloadSchemazod schema
x402.NETWORK_DYNAMOconstant ("dynamo-v1")
x402.PAYMENT_HEADERconstant ("X-PAYMENT")
x402.PAYMENT_RESPONSE_HEADERconstant ("X-PAYMENT-RESPONSE")
x402.PaymentPayloadSchemazod schema
x402.PaymentRequiredBodySchemazod schema
x402.PaymentRequirementsSchemazod schema
x402.ReceiptSchemazod schema
x402.SCHEME_ALLOWANCEconstant ("dynamo-allowance")
x402.SCHEME_EXACTconstant ("exact")
x402.X402_VERSIONconstant (1)
x402.answerChallengefunction
x402.decodePaymentHeaderfunction
x402.encodePaymentHeaderfunction
x402.issueChallengefunction
x402.parseChallengefunction
x402.verifyPaymentfunction
x402.x402Fetchfunction