kawasekit
kawasekit — TypeScript SDK for stablecoin payments by AI agents.
This is the public API surface. The package root is the one allowed barrel file; it contains re-exports only — no logic. JSDoc lives on the original declarations.
Classes
- ChainNotSupportedError
- JpycNotAvailableError
- SessionEnvelopeChainMismatchError
- SessionEnvelopeParseError
- SessionEnvelopeSignerMismatchError
- SessionEnvelopeVersionError
- TransferJpycInputError
- X402InvalidPayloadError
Interfaces
- BuildPaymentRequiredResponseParams
- BuildPaymentRequirementsParams
- CancelAuthorizationMessage
- CreateAgentSmartAccountParams
- CreateHttpFacilitatorParams
- CreateJpycDailyLimitPoliciesParams
- CreateSelfFacilitatorParams
- CreateX402HandlerParams
- CreateX402PaymentSignerParams
- Eip3009Domain
- Facilitator
- IssueSessionKeyParams
- JpycDeployment
- KawaseChain
- KawasekitSessionEnvelope
- KawasekitSessionPolicySummary
- ObservabilityEventBase
- ObservabilityHooks
- PaymentAcceptedEvent
- PaymentRequiredEvent
- RestoreSessionAccountParams
- RevokeSessionKeyParams
- RevokeSessionKeyResult
- RotateSessionKeyParams
- RotateSessionKeyResult
- SignedAuthorization
- SignX402PaymentParams
- TransferJpycParams
- TransferJpycResult
- TransferWithAuthorizationMessage
- WrapFetchParams
- X402ExactEvmAuthorization
- X402ExactEvmExtra
- X402ExactEvmPayload
- X402HandlerContext
- X402PaymentPayload
- X402PaymentRequiredResponse
- X402PaymentRequirements
- X402PaymentSigner
- X402ResourceInfo
- X402SettlementResponse
- X402SupportedKind
- X402SupportedResponse
- X402TokenDomain
- X402VerifyRequest
- X402VerifyResponse
Type Aliases
- ClientPaymentEvent
- ConfiguredKernelClient
CreateCoinbaseFacilitatorParams- HookCallback
- KawasekitSessionEnvelopeVersion
- ObservabilityEvent
- ReceiveWithAuthorizationMessage
- SettleEvent
- SupportedChainId
- VerifyEvent
- X402AssetTransferMethod
- X402Fetch
- X402InnerHandler
- X402Network
- X402RequestHandler
- X402Scheme
- X402SettleRequest
- X402SettleResponse
- X402Version
Variables
- JPYC_DECIMALS
- JPYC_EIP712_DOMAIN_HINT
- JPYC_V2_ADDRESS
- jpycAbi
- jpycDeployments
- KAWASEKIT_SESSION_ENVELOPE_VERSION
- ONE_DAY_SECONDS
- polygon
- polygonAmoy
- supportedChains
- X402_DEFAULT_AUTHORIZATION_LIFETIME_SECONDS
- X402_DEFAULT_MAX_TIMEOUT_SECONDS
- X402_FACILITATOR_ERROR_CODES
- X402_HEADER_PAYMENT_REQUIRED
- X402_HEADER_PAYMENT_RESPONSE
- X402_HEADER_PAYMENT_SIGNATURE
- X402_VERSION
Functions
- authorizationDeadlineFromNow
- buildPaymentRequiredResponse
- buildPaymentRequirements
- chainIdToX402Network
- createAgentSmartAccount
createCoinbaseFacilitator- createHttpFacilitator
- createJpycDailyLimitPolicies
- createSelfFacilitator
- createX402Handler
- createX402PaymentSigner
- decodePaymentRequiredHeader
- decodePaymentResponseHeader
- decodePaymentSignatureHeader
- encodePaymentRequiredHeader
- encodePaymentResponseHeader
- encodePaymentSignatureHeader
- extractAcceptedNetworks
- generateAuthorizationNonce
- getChain
- getJpycAddress
- invokeHookSafely
- issueSessionKey
- isSupportedChainId
- isX402Network
- parseSessionEnvelope
- restoreSessionAccount
- revokeSessionKey
- rotateSessionKey
- serializeSessionEnvelope
- signCancelAuthorization
- signReceiveWithAuthorization
- signTransferWithAuthorization
- transferJpyc
- wrapFetch
- x402NetworkToChainId
- zerodevRpcUrl