signTypedMessageEip155

open fun signTypedMessageEip155(privateKey: PrivateKey, messageJson: String, chainId: Int): String

Sign a typed message EIP-712 V4 with EIP-155 replay attack protection.

Parameters

privateKey

: the private key used for signing

messageJson

: A custom typed data message in json

chainId

: chainId for eip-155 protection