Skip to main content

depositAddressFor

@totemsdk/chain-provider


@totemsdk/chain-provider / depositAddressFor

Function: depositAddressFor()

depositAddressFor(lp, opts?): string

Deterministic, domain-separated funding address for an LP deposit. In production this is the channel/pool script address the LP pays into and the funding check is run against; keeping it a pure derivation keeps issue #25 constructable and checkable without a live script compiler.

Parameters

lp

string

opts?

DepositAddressOptions

Returns

string