• Estimates the energy required for a Tron release transaction.

    Async

    Function

    tronEstimateReleaseTxEnergy

    Returns

    • A Promise that resolves to the result of the constant contract trigger for estimating the energy required, or null if estimation fails.

    Parameters

    • tronWeb: any

      The TronWeb instance.

    • bridgeContractAddress: string

      The address of the bridge contract.

    • amount: BigNumber

      The amount to release.

    • tronDestinationWallet: string

      The Tron destination wallet address.

    • trc20TokenAddress: string

      The TRC20 token address.

    • depositTxHashed: string

      The hashed deposit transaction.

    • releaseAccountAddress: string

      The release account address.

    Returns Promise<null | TronTriggerConstantContractResult>

Generated using TypeDoc