NEOONEDataProvider

Class
Implements the methods required by the NEOONEProvider as well as the DeveloperProvider interface using a NEO•ONE node.
export class NEOONEDataProvider extends DataProviderBase implements DeveloperProvider 

Methods

getClaimAmount

public async getClaimAmount(input: Input): Promise<BigNumber> 

Parameters

input

getInvocationData

public async getInvocationData(hash: Hash256String): Promise<RawInvocationData> 

Parameters

hash
string

iterBlocks

public iterBlocks(options: IterOptions = {}): AsyncIterable<Block> 

Parameters

getNetworkSettings

public async getNetworkSettings(): Promise<NetworkSettings> 

iterActionsRaw

public iterActionsRaw(options: IterOptions = {}): AsyncIterable<RawAction> 

Parameters

runConsensusNow

public async runConsensusNow(): Promise<void> 

updateSettings

public async updateSettings(options: Partial<PrivateNetworkSettings>): Promise<void> 

Parameters

options

getSettings

public async getSettings(): Promise<PrivateNetworkSettings> 

fastForwardOffset

public async fastForwardOffset(seconds: number): Promise<void> 

Parameters

seconds
number

fastForwardToTime

public async fastForwardToTime(seconds: number): Promise<void> 

Parameters

seconds
number

reset

public async reset(): Promise<void> 

getNEOTrackerURL

public async getNEOTrackerURL(): Promise<string | undefined> 

resetProject

public async resetProject(): Promise<void> 

iterStorage

public iterStorage(address: AddressString): AsyncIterable<StorageItem> 

Parameters

address
string
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE