setPrivateKey

Set a private key used with the VisionWeb instance, used for obtaining the address, signing transactions, and getting balances.

❗️

WARNING

Do not use this with any web/user facing VisionWeb instances. This will leak the private key.

Usage

visionWeb.setPrivateKey(privateKey);

Parameters

ParameterDescriptionTypeDefault
privateKeyprivateKeystring-

Returns

No return value

Example

visionWeb.setPrivateKey("your private key");
> undefined