signAuthorization

open fun signAuthorization(chainId: Array<Byte>, contractAddress: String, nonce: Array<Byte>, privateKey: String): String

Returns the signed authorization hash

Return

A json string of the signed authorization

Parameters

chainId

The chainId of the network

contractAddress

The address of the contract to be authorized

nonce

The nonce of the transaction

privateKey

The private key