UNPKG

@daimo/pay

Version:

Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.

20 lines (17 loc) 439 B
import { createTRPCClient, httpBatchLink } from '@trpc/client'; import { daimoPayVersion } from './exports.js'; function createTrpcClient(apiUrl, sessionId) { return createTRPCClient({ links: [ httpBatchLink({ url: apiUrl, headers: { "x-pay-version": daimoPayVersion, "x-session-id": sessionId } }) ] }); } export { createTrpcClient }; //# sourceMappingURL=trpc.js.map