CDP SDK TypeScript - v1.31.1
    Preparing search index...

    Type Alias EvmAccount

    Base type for any Ethereum account with signing capabilities. For example, this could be an EVM ServerAccount, or a viem LocalAccount.

    type EvmAccount = {
        address: Address;
        sign: (parameters: { hash: Hash }) => Promise<Hex>;
        signMessage: (parameters: { message: SignableMessage }) => Promise<Hex>;
        signTransaction: (transaction: TransactionSerializable) => Promise<Hex>;
        signTypedData: <
            const typedData extends TypedData
            | Record<string, unknown>,
            primaryType extends keyof typedData | "EIP712Domain" = keyof typedData,
        >(
            parameters: TypedDataDefinition<typedData, primaryType>,
        ) => Promise<Hex>;
        policies?: string[];
    }
    Index

    Properties

    address: Address

    The address of the signer.

    sign: (parameters: { hash: Hash }) => Promise<Hex>

    Signs a message hash and returns the signature as a hex string.

    signMessage: (parameters: { message: SignableMessage }) => Promise<Hex>

    Signs a message and returns the signature as a hex string.

    signTransaction: (transaction: TransactionSerializable) => Promise<Hex>

    Signs a transaction and returns the signed transaction as a hex string.

    signTypedData: <
        const typedData extends TypedData
        | Record<string, unknown>,
        primaryType extends keyof typedData | "EIP712Domain" = keyof typedData,
    >(
        parameters: TypedDataDefinition<typedData, primaryType>,
    ) => Promise<Hex>

    Signs a typed data and returns the signature as a hex string.

    policies?: string[]

    A list of Policy ID's that apply to the account.