Skip to content

clearSign

clearSign(input, options?): Promise<ClearSignedBatch>

Defined in: packages/sdk/src/clearSign.ts:115

Decode a transaction, typed data, EIP-5792 batch, or Simple Account UserOp.

With no options this uses the pinned official registry, officialOnlyPolicy(), and the ERC-20 / ERC-721 / WETH builtins.

BatchInput

DecodeOptions

Promise<ClearSignedBatch>

import { clearSign } from '@erc7730/sdk';
const signed = await clearSign({
to: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
data: '0xd0e30db0',
value: 10n ** 18n,
chainId: 1,
});
signed.screens.headline;

InvalidInputError INVALID_ADDRESS, INVALID_HEX, INVALID_CALLDATA, INVALID_CHAIN_ID, or INVALID_TYPED_DATA when the payload is not a usable call.

clearSign(input, options?): Promise<ClearSignedOperation>

Defined in: packages/sdk/src/clearSign.ts:123

Decode a transaction, EIP-712 typed data, or Simple Account UserOp. Uses the same registry, policy, and thrown codes as the batch overload.

TransactionInput | TypedDataInput | UserOpInput

DecodeOptions

Promise<ClearSignedOperation>