Skip to content

@hellomoon/ink-paymaster


@hellomoon/ink-paymaster / encodePublicPaymasterApproval

Function: encodePublicPaymasterApproval() ​

encodePublicPaymasterApproval(amount, deployment?): `0x${string}`

Encodes an ERC-20 approval granting the public paymaster a finite token allowance.

Parameters ​

amount ​

bigint

Allowance in the selected token's base units.

deployment? ​

InkPublicPaymasterDeployment = INK_PUBLIC_PAYMASTER

Returns ​

`0x${string}`

Inner ERC-20 approve calldata. The smart account must send it to the selected token.

Remarks ​

The public paymaster does not sponsor this call; submit it through an owner-paid path.

ERC-4337 paymaster clients for Ink Mainnet