OpenPermit Docs
SDK

Onchain Helper

Execute onchain evmStablecoin seller challenges without giving OpenPermit custody.

For evmStablecoin challenges, the buyer SDK authorizes the intent, requests an onchain transaction plan, submits the transaction with caller-provided viem clients, records settlement, and returns retry headers.

import { executeOnchainSellerChallenge } from '@openpermit/sdk/buyer';

const result = await executeOnchainSellerChallenge({
	client: openpermit,
	mandateId: 'mandate_...',
	challenge,
	walletClient,
	publicClient,
	chain: 'eip155:10143',
	confirmations: 1,
});

const retryHeaders = result.retryHeaders;

OpenPermit prepares policy decisions and transaction plans. Your application owns wallet connection, transaction submission, and the public client used to wait for receipts.

Seller resources can store onchain defaults such as chain, payTo, contractAddress, tokenAddress, and tokenDecimals.