Skip to content

@hellomoon/ink-paymaster


@hellomoon/ink-paymaster / encodePublicPaymasterApproval

Function: encodePublicPaymasterApproval()

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

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

Parameters

amount

bigint

Allowance in six-decimal USDC base units.

Returns

`0x${string}`

The inner USDC approve calldata. The smart account must wrap it in its own execution ABI.

Remarks

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

Public prepaid USDC paymaster for Ink Mainnet