@circle-fin/usdckit - v0.21.0
    Preparing search index...
    • Estimates the transfer fee for a given transaction.

      Parameters

      Returns Promise<
          {
              callGasLimit?: string;
              high: | undefined
              | {
                  baseFee?: string;
                  gasLimit: undefined
                  | `${number}`
                  | "";
                  gasPrice?: string;
                  maxFee: undefined | `${number}` | "";
                  networkFee?: string;
                  priorityFee: undefined | `${number}` | "";
              };
              low: | undefined
              | {
                  baseFee?: string;
                  gasLimit: undefined
                  | `${number}`
                  | "";
                  gasPrice?: string;
                  maxFee: undefined | `${number}` | "";
                  networkFee?: string;
                  priorityFee: undefined | `${number}` | "";
              };
              medium: | undefined
              | {
                  baseFee?: string;
                  gasLimit: undefined
                  | `${number}`
                  | "";
                  gasPrice?: string;
                  maxFee: undefined | `${number}` | "";
                  networkFee?: string;
                  priorityFee: undefined | `${number}` | "";
              };
              preVerificationGas?: string;
              verificationGasLimit?: string;
          },
      >

      A promise that resolves to an EstimateTransactionFee object containing the estimated fee details.

      const fee = await estimateTransferFee(client, {
      destinationAddress: '0x123...',
      sourceAddress: '0x456...',
      amount: ['1000'],
      blockchain: 'ETH-SEPOLIA',
      });
      // => {
      // high: { gasLimit: '3', maxFee: '6', priorityFee: '9', baseFee: '12', networkFee: '15' },
      // medium: { gasLimit: '2', maxFee: '4', priorityFee: '6', baseFee: '8', networkFee: '10' },
      // low: { gasLimit: '1', maxFee: '2', priorityFee: '3', baseFee: '4', networkFee: '5' },
      // }