Skip to content

@hellomoon/ink-paymaster


@hellomoon/ink-paymaster / validateQuote

Function: validateQuote() ​

validateQuote(quote, deployment?, expectedEip7702Delegate?, expectedToken?): asserts quote is PublicPaymasterQuote

Validates that an unknown value is a prepaid quote for the pinned public deployment.

Parameters ​

quote ​

unknown

deployment? ​

InkPublicPaymasterDeployment = INK_PUBLIC_PAYMASTER

expectedEip7702Delegate? ​

`0x${string}`

expectedToken? ​

`0x${string}`

Returns ​

asserts quote is PublicPaymasterQuote

Throws ​

InkPaymasterValidationError when deployment addresses, mode, or encodings differ.

ERC-4337 paymaster clients for Ink Mainnet