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
Parameter | Description | Type | Default |
---|---|---|---|
privateKey | privateKey | string | - |
Returns
No return value
Example
visionWeb.setPrivateKey("your private key");
> undefined