DeveloperClient

Class
Client which controls a development network.
export class DeveloperClient 

Constructor

constructor

public constructor(developerProvider: DeveloperProvider) 

Parameters

developerProvider
DeveloperProvider

Methods

runConsensusNow

Trigger consensus to run immediately.
public async runConsensusNow(): Promise<void> 

updateSettings

Update settings for the private network.
public async updateSettings(options: Partial<PrivateNetworkSettings>): Promise<void> 

Parameters

options

getSettings

Get the current settings of the private network.
public async getSettings(): Promise<PrivateNetworkSettings> 

fastForwardOffset

Fast forward the local network by seconds into the future.
public async fastForwardOffset(seconds: number): Promise<void> 

Parameters

seconds
number

fastForwardToTime

Fast forward to a particular unix timestamp in the future.
public async fastForwardToTime(seconds: number): Promise<void> 

Parameters

seconds
number

reset

Reset the local network to it's initial state starting at the genesis block.
public async reset(): Promise<void> 

getNEOTrackerURL

Fetch the NEO Tracker URL for the project.
public async getNEOTrackerURL(): Promise<string | undefined> 

resetProject

Reset the project this network is associated with to it's initial state.
public async resetProject(): Promise<void> 
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE