getGeneralPaymasterInput
Returns encoded formatted general-based paymaster params.
Import
import { getGeneralPaymasterInput } from 'viem/zksync'
Usage
import { getGeneralPaymasterInput } from 'viem/zksync'
const data = getGeneralPaymasterInput({
innerInput: '0x',
})
Returns
EncodeFunctionDataReturnType
The Hex
value of the provided general-based paymaster inputs.
Parameters
innerInput
Additional payload that can be sent to the paymaster to implement any logic
- Type:
Hex
orByteArray
const data = getGeneralPaymasterInput({
innerInput: new Uint8Array([0, 1, 2, 3, 4, 5]),
})
const data = getGeneralPaymasterInput({
innerInput: "0x0005040302010",
})