Skip to content

Function: cantonSupportedExtra() ​

ts
function cantonSupportedExtra(kind): object & object;

Defined in: packages/x402-core/src/types/facilitator.ts:409

Read one kind's extra as canton-exact, or say what is wrong with it.

Throws rather than returning {}, which is what it did before: swallowing the failure meant one bad field discarded every good one — the synchronizer and the instruments alongside it — and the caller was then told the deployment "advertises no instrument", which was both false and unactionable.

Unknown keys still pass: extra is where a deployment puts its own, and only the keys this scheme defines are checked.

Parameters ​

kind ​

extra? ​

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

network ​

string = ...

scheme ​

string = ...

x402Version ​

2 = ...

Returns ​

object & object