Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / channel-manager / deductProtocolHookTransactionFee

Function: deductProtocolHookTransactionFee()

function deductProtocolHookTransactionFee(params): Promise<DeductProtocolHookTransactionFeeResult>;

Defined in: packages/sdk/src/channel-manager/hook.ts:176

Calculates the hook transaction fee by deducting the protocol fee

Parameters

params

DeductProtocolHookTransactionFeeParams

The total value sent with the transaction

Returns

Promise<DeductProtocolHookTransactionFeeResult>

The amount that should be passed to the hook