Skip to content

Function: selectCantonDeployments() ​

ts
function selectCantonDeployments(supported, prefer?): CantonDeploymentTerms[];

Defined in: packages/x402-core/src/deployment.ts:195

Every canton-exact way to pay this facilitator offers.

The selector runs on every kind that matched, so pass schemes/networks when a facilitator also settles something this reader cannot read — otherwise a kind with no extra.instruments is refused on its own terms rather than skipped. Our own facilitator settles canton only, and the Express adapter always names a scheme.

Parameters ​

supported ​

extensions ​

string[] = ...

The ids of the extensions the facilitator implements (x402 v2 §7.3.1). A list of ids, not the extensions object an answer carries.

kinds ​

object[] = ...

signers ​

{ [key: string]: string[]; } = ...

The facilitator's signers, keyed by CAIP-2 pattern such as canton:*.

prefer? ​

CantonDeploymentPreference = {}

Returns ​

CantonDeploymentTerms[]