@paycall-402/client
v0.1.1
Published
Client SDK for automatically handling HTTP 402 payment challenges.
Readme
@paycall-402/client
Client SDK for automatically handling HTTP 402 payment challenges.
Important: Currently, only EIP-3009 tokens are supported for end-to-end payment and settlement flows.
Install
npm i @paycall-402/clientWhat this package contains
createPaidFetchwrapper for automatic 402 retry flow- Axios interceptor helpers
- Wallet adapters:
walletFromViemAccountwalletFromEthersSignerwalletFromBrowserProviderwalletFromGenericSigner
- EVM payment signer helpers
Usage
import { createPaidFetch, createEvmPaymentSigner, walletFromViemAccount } from "@paycall-402/client";Examples:
- Node client:
examples/clients/node-paid-fetch - Browser wallet demo:
examples/clients/injected-provider
Repository: https://github.com/rohitsethii/paycall-402
