Skip to main content

createLiquidityPortAdapter

@totemsdk/edge-adapters


@totemsdk/edge-adapters / createLiquidityPortAdapter

Function: createLiquidityPortAdapter()

createLiquidityPortAdapter(config): EdgeLiquidityPort

Wraps a ChainStateProvider (chain-provider, minima-rpc, lookup-client) as an EdgeLiquidityPort.

getBalance sums sendable coins for the given address and tokenId. getUtxos returns all coins as raw UTXOs (typed as unknown[] per the port contract).

Parameters

config

LiquidityPortConfig

Returns

EdgeLiquidityPort