@mindpass/protocols
v0.1.0
Published
Concrete `RouterMethod` implementations for the payment protocols supported by `mindpass`.
Maintainers
Readme
@mindpass/protocols
Concrete RouterMethod implementations for the payment protocols supported by mindpass.
Install
npm install @mindpass/protocolsIncluded Methods
createSiwxMethod()createX402Method()createTempoMethod()
Minimal Example
import { createSiwxMethod, createTempoMethod, createX402Method } from '@mindpass/protocols';
import { privateKeyToAccount } from 'viem/accounts';
const account = privateKeyToAccount('0x...');
const methods = [
createSiwxMethod(),
createX402Method({ account }),
createTempoMethod({ account }),
];See the root repo for end-to-end router examples: https://github.com/remyjkim/mindpass
