Create a CRE client for simulation mode
Network identifier
X402Facilitator contract address
Optional
Simulation options (workflow path, target settings, etc.)
Configured CRE client in simulation mode
const client = createSimulationClient('eip155:84532', '0xea52...', { workflowPath: './x402-workflow', targetSettings: 'staging-settings',});// This will spawn: cre workflow simulate ./x402-workflow --target staging-settings ...const result = await client.verify(payload, requirements); Copy
const client = createSimulationClient('eip155:84532', '0xea52...', { workflowPath: './x402-workflow', targetSettings: 'staging-settings',});// This will spawn: cre workflow simulate ./x402-workflow --target staging-settings ...const result = await client.verify(payload, requirements);
Create a CRE client for simulation mode