Skip to content

Function: assetSymbol() ​

ts
function assetSymbol(instrumentId): string;

Defined in: packages/x402-core/src/networks.ts:60

The spec's asset for an instrument: a symbol, not a descriptor. PaymentRequirements.asset is "CC" for Canton Coin, or a registry token's own symbol — the full {admin, id} travels in extra.instrumentId, because a symbol alone cannot say which registry issued it.

Canton Coin is the one case where the two differ: its instrument is Amulet and its symbol is CC.

Parameters ​

instrumentId ​

admin ​

string = ...

Admin party ID for the instrument (e.g. DSO::1220...).

id ​

string = ...

Instrument name. For Canton Coin: "Amulet".

Returns ​

string