EVM
Last updated
Last updated
EVM chains like Ethereum, Polygon, Base etc support the following signature kinds
:
Transaction
: unsigned transaction.
Message
: an arbitrary message.
Eip712
: typed structured data defined in .
Signs an unsigned transaction.
blockchainKind
Evm
String
kind
Transaction
String
transaction
The unsigned hex encoded transaction as shown below.
String
First install the Ethers JS. You can find the full documentation here:
Here a code sample to generate a signature via :
Signs an arbitrary hex encoded message.
blockchainKind
Evm
String
kind
Message
String
message
An arbitrary hex encoded message.
String
blockchainKind
Evm
String
kind
Eip712
String
types
Type definitions.
Map<String, TypedDataField[]>
domain
Domain separator.
Eip712Domain
message
Structured message to sign.
Object
TypedDataField
name
Field name.
String
type
Field type.
String
Eip712Domain
name
Name of the signing domain.
String
version
Current major version of the signing domain.
String
chainId
Chain ID.
Integer
verifyingContract
The address of the contract that will verify the signature.
String
salt
32-byte value as a last-resort domain separator.
String
Signs a typed structured data defined in .