clearSign
Call Signature
Section titled “Call Signature”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.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Promise<ClearSignedBatch>
Example
Section titled “Example”import { clearSign } from '@erc7730/sdk';
const signed = await clearSign({ to: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', data: '0xd0e30db0', value: 10n ** 18n, chainId: 1,});signed.screens.headline;Throws
Section titled “Throws”InvalidInputError INVALID_ADDRESS, INVALID_HEX,
INVALID_CALLDATA, INVALID_CHAIN_ID, or INVALID_TYPED_DATA when the
payload is not a usable call.
Call Signature
Section titled “Call Signature”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.
Parameters
Section titled “Parameters”TransactionInput | TypedDataInput | UserOpInput
options?
Section titled “options?”Returns
Section titled “Returns”Promise<ClearSignedOperation>