Skip to main content
Defined in: accounts/evm/types.ts:69 Base type for any Ethereum account with signing capabilities. For example, this could be an EVM ServerAccount, or a viem LocalAccount.

Properties

address

Defined in: accounts/evm/types.ts:71 The address of the signer.

policies?

Defined in: accounts/evm/types.ts:86 A list of Policy ID’s that apply to the account.

sign()

Defined in: accounts/evm/types.ts:73 Signs a message hash and returns the signature as a hex string.

Parameters

parameters
hash
Hash

Returns

Promise<Hex>

signMessage()

Defined in: accounts/evm/types.ts:75 Signs a message and returns the signature as a hex string.

Parameters

parameters
message
SignableMessage

Returns

Promise<Hex>

signTransaction()

Defined in: accounts/evm/types.ts:77 Signs a transaction and returns the signed transaction as a hex string.

Parameters

transaction
TransactionSerializable

Returns

Promise<Hex>

signTypedData()

Defined in: accounts/evm/types.ts:79 Signs a typed data and returns the signature as a hex string.

Type Parameters

typedData
typedData extends TypedData | Record<string, unknown>
primaryType
primaryType extends keyof typedData | "EIP712Domain" = keyof typedData

Parameters

parameters
TypedDataDefinition<typedData, primaryType>

Returns

Promise<Hex>