@autlantic/chain-evm
v0.2.8
Published
Base + USDC helpers for Autlantic recurring billing
Readme
Addresses, amount conversion, allowance/vault calldata, UsdcPass transfer verification, and relayer helpers used by the Autlantic Billing stack. Relayer helpers are for gas sponsorship and transaction submission; they are not used to custody USDC balances.
Install
npm install @autlantic/chain-evmMost integrators only need @autlantic/payments-recurring. Use this package directly when you need lower-level Base / USDC utilities.
UsdcPass (one-time transfer)
For a single USDC payment (no vault mandate):
import {
chainConfigFor,
encodeTransferCalldata,
usdcToMicro,
verifyUsdcPassPaymentFromTxHash,
type UsdcPassPaymentIntent,
} from "@autlantic/chain-evm";
const chainId = 84532; // Base Sepolia
const chain = chainConfigFor(chainId);
const payoutAddress = "0x…";
const amountUsdc = 49;
const intent: UsdcPassPaymentIntent = {
chainId,
usdcAddress: chain.usdcAddress,
payoutAddress,
expectedAmountUsdc: amountUsdc,
};
const transferCalldata = encodeTransferCalldata(payoutAddress, usdcToMicro(amountUsdc));
// Wallet sends { to: usdcAddress, data: transferCalldata }, then:
const result = await verifyUsdcPassPaymentFromTxHash(intent, txHash);Hosted Autlantic checkout (POST /v1/payments → /checkout/pay/:id) uses the same verification path. See One-time payments.
Docs
- Product: autlantic.com
- Docs: docs.autlantic.com
- Source: github.com/autlantic/payments-sdk
License
MIT © Autlantic
