ChangePubKey

ChangePubkey transaction type.

ChangePubkey(
    int chainId,
    int accountId,
    int subAccountId,
    String newPubkeyHash,
    int feeToken,
    String fee,
    int nonce,
    String? ethSignature,
    int? ts,
)

func getEthSignMsg

String getEthSignMsg(int nonce, int accountId)

Get the Ethereum sign message

func sign

void sign(ZkLinkSigner zkLinkSigner)

Sign transaction with given ZkLinkSigner

func toJson

Get the json str of ChangePubKey

func toEip712RequestPayload

Get the EIP-712 structured data of ChangePubKey

func setEthAuthData

Set Ethereum authentication data with given EthECDSA signature

Example

Last updated

Was this helpful?