Home Reference Source
public class | source

MetaMaskSigner

Extends:

AbstractSigner → MetaMaskSigner

Static Method Summary

Static Public Methods
public static

async sign(deploy: Deploy, options: Object): Promise<DeployUtil.Deploy>

Sign a given Deploy Object with the corresponding public key.

Inherited Summary

From class AbstractSigner
public static

async sign(deploy: Deploy, options: Object): Promise<Deploy>

Abstract method to sign a deployment.

Static Public Methods

public static async sign(deploy: Deploy, options: Object): Promise<DeployUtil.Deploy> source

Sign a given Deploy Object with the corresponding public key. You must pass the active public key from the user and the public key where the deploy is going to be used.

Override:

AbstractSigner#sign

Params:

NameTypeAttributeDescription
deploy Deploy

Deploy object

options Object

Options object

options.snapID string

ID of the MetaMask Casper Snap.

options.addressIndex string

Index of the address.

options.publicKey string

Public key that sign the deploy.

options.signingTxnText string

Message explanation for the user displayed in MetaMask

Return:

Promise<DeployUtil.Deploy>

Signed deploy object