Skip to content

@ecp.eth/sdk


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

Function: getEstimatedChannelPostCommentHookFee()

function getEstimatedChannelPostCommentHookFee(getEstimatedChannelPostCommentHookFeeParams): Promise<HookFeeEstimation>;

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

It calls the estimateAddCommentFee function on the hook to retrieve the estimated fee for posting a comment to a channel. It also tries to probe if the hook is any known legacy hook and return corresponding fee estimation. For estimation of total fee, use the estimateChannelPostCommentFee helper

Parameters

getEstimatedChannelPostCommentHookFeeParams

GetEstimatedChannelPostCommentHookFeeParams

The parameters for estimating the fee for posting a comment to a channel

Returns

Promise<HookFeeEstimation>

The estimated fee for posting a comment to a channel