/** * Parameters for constructing an InvalidMaxPriorityFeePerGasError. * @typedef {Object} InvalidMaxPriorityFeePerGasErrorParameters * @property {string} [docsBaseUrl] - Base URL for the documentation. * @property {string} [docsPath] - Path to the documentation. * @property {string} [docsSlug] - Slug for the documentation. * @property {string[]} [metaMessages] - Additional meta messages. * @property {import('../ethereum/BaseError.js').BaseError|Error} [cause] - The cause of the error. * @property {string} [details] - Details of the error. * @property {object} [meta] - Optional object containing additional information about the error. */ /** * Represents an error that occurs when the max priority fee per gas is invalid. * * This error is typically encountered when a transaction specifies an invalid max priority fee per gas value. * * @example * ```javascript * import { InvalidMaxPriorityFeePerGasError } from '@tevm/errors' * import { createMemoryClient } from '@tevm/memory-client' * * const client = createMemoryClient() * * try { * await client.sendTransaction({ * from: '0x1234567890123456789012345678901234567890', * to: '0x0987654321098765432109876543210987654321', * maxPriorityFeePerGas: -1n, // Invalid negative max priority fee per gas * }) * } catch (error) { * if (error instanceof InvalidMaxPriorityFeePerGasError) { * console.error('Invalid max priority fee per gas:', error.message) * console.log('Documentation:', error.docsLink) * } * } * ``` * * @extends {InvalidParamsError} */ export class InvalidMaxPriorityFeePerGasError extends InvalidParamsError { /** * Constructs an InvalidMaxPriorityFeePerGasError. * * @param {string} message - Human-readable error message. * @param {InvalidMaxPriorityFeePerGasErrorParameters} [args={}] - Additional parameters for the InvalidMaxPriorityFeePerGasError. */ constructor(message: string, args?: InvalidMaxPriorityFeePerGasErrorParameters); } /** * Parameters for constructing an InvalidMaxPriorityFeePerGasError. */ export type InvalidMaxPriorityFeePerGasErrorParameters = { /** * - Base URL for the documentation. */ docsBaseUrl?: string; /** * - Path to the documentation. */ docsPath?: string; /** * - Slug for the documentation. */ docsSlug?: string; /** * - Additional meta messages. */ metaMessages?: string[]; /** * - The cause of the error. */ cause?: import("../ethereum/BaseError.js").BaseError | Error; /** * - Details of the error. */ details?: string; /** * - Optional object containing additional information about the error. */ meta?: object; }; import { InvalidParamsError } from '../ethereum/InvalidParamsError.js'; //# sourceMappingURL=InvalidMaxPriorityFeePerGas.d.ts.map