Change Public Key

In order to send L2 transactions, a user has to associate a key pair with the account they would like to use.

setSigningKey(changePubKey: {
    feeToken: TokenLike;
    ethAuthType: ChangePubkeyTypes;
    fee?: BigNumberish;
    nonce?: Nonce;
    validFrom?: number;
    validUntil?: number;
}): Promise<Transaction>;
Parameter
Description

.feeToken

Token to pay the fee in

.ethAuthType

The type which determines how to verify the Ethereum signature

.fee

Amount of token to be paid as a fee for the transaction

.nonce

Nonce that is going to be used

.validFrom

Unix timestamp

.validUntil

Unix timestamp

Last updated