WalletCore
WalletCore
/
wallet.core.jni
/
Eip7702
Eip7702
class
Eip7702
Functions
Functions
get
Authorization
Hash
Link copied to clipboard
open
fun
getAuthorizationHash
(
chainId
:
Array
<
Byte
>
,
contractAddress
:
String
,
nonce
:
Array
<
Byte
>
)
:
Array
<
Byte
>
Computes an Authorization hash in [EIP-7702 format](https://eips.ethereum.org/EIPS/eip-7702) `keccak256('0x05' || rlp([chain_id, address, nonce]))`.
sign
Authorization
Link copied to clipboard
open
fun
signAuthorization
(
chainId
:
Array
<
Byte
>
,
contractAddress
:
String
,
nonce
:
Array
<
Byte
>
,
privateKey
:
String
)
:
String
Signs an Authorization hash in [EIP-7702 format](https://eips.ethereum.