Skip to content

combineSignatures

Combines multiple signatures with provided upper limit values for gas fees and returns the concatenated result.

Import

import { combineSignatures } from "@account-kit/smart-contracts";

Usage

import { combineSignatures } from "@account-kit/smart-contracts";
 
const combinedSignature = combineSignatures({
// this is the upper limit pre-verification gas
upperLimitPvg: "0x01",
upperLimitMaxFeePerGas: "0x02",
upperLimitMaxPriorityFeePerGas: "0x03",
signatures: [{
signerType: "EOA",
userOpSigType: "UPPERLIMIT",
signer: `0x...`,
signature: `0x...`,
}]
usingMaxValues: false,
});

Parameters

params

CombineSignaturesParams The function parameters

Returns

Hex The concatenated result of padding and formatting the provided values and signatures