concatPaymasterAndData

1function concatPaymasterAndData(paymasterAndData): `0x${string}`;

Defined in: aa-sdk/core/src/utils/userop.ts:216

Utility method for converting the object containing the paymaster address and paymaster data to the paymaster and data concatenated hex string

Parameters

ParameterTypeDescription

paymasterAndData

Pick<UserOperationRequest<"0.7.0">, "paymaster" | "paymasterData">

the object containing the picked paymaster and paymasterData fields of entrypoint v0.7 user operation request

Returns

`0x${string}`

the paymasterAndData hex value of entrypoint v0.6 user operation request paymasterAndData field