x402-chainlink
    Preparing search index...

    Function createSimulationClient

    • Create a CRE client for simulation mode

      Parameters

      • network: EVMNetworkId

        Network identifier

      • facilitatorAddress: `0x${string}` = '0x0000000000000000000000000000000000000000'

        X402Facilitator contract address

      • Optionaloptions: SimulationClientOptions

        Simulation options (workflow path, target settings, etc.)

      Returns CREClient

      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);