@lelantos-org/sdk / advanced / makeAssetInfo
Function: makeAssetInfo()
ts
function makeAssetInfo(args): AssetInfo;Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:127
Build an AssetInfo with every optional field defaulted.
For tests, mocks, and custom registries that construct assets by hand rather than through fetchAssetInfo. It derives ladder from scale and decimals; an object literal whose three disagree type-checks and splits change onto the wrong denominations.
ts
const usdc = makeAssetInfo({
id: assetId(2n),
token: evmAddress("0xA0b8…eB48"),
scale: 1n,
decimals: 6,
});Parameters
| Parameter | Type |
|---|---|
args | MakeAssetInfoArgs |