export type UserOperationStruct = {
sender: string;
nonce: BigNumberish | null;
initCode: BytesLike | null;
callData: BytesLike;
callGasLimit: BigNumberish | null;
verificationGasLimit: BigNumberish;
preVerificationGas: BigNumberish;
maxFeePerGas: BigNumberish | null;
maxPriorityFeePerGas: BigNumberish | null;
paymasterAndData: BytesLike;
signature: BytesLike;
};
Transaction Details (Used for createTransaction and getGasFees requests)
interface TransactionDetails {
encodedData: string;
targetContractAddress: string;
value?: number | bigint;
}
interface Transaction {
id?: string;
to_: string;
from_: string;
txn_hash?: string;
block_hash?: string;
timestamp?: number;
chain_id: number;
status: TransactionStatus;
amount: number;
decimals: number;
fee?: number | bigint;
encodedData?: string;
targetContractAddress?: string;
}
enum TransactionStatus {
SUCCESS = "SUCCESS",
FAILURE = "FAILURE",
REJECTED = "REJECTED",
PENDING = "PENDING"
}