Constructors
constructor
- new CrossbarClient(crossbarUrl, verbose?): CrossbarClient
Parameters
- crossbarUrl: string
Optional
verbose: boolean
Properties
Readonly
crossbarUrl
crossbarUrl: string
Readonly
verbose
verbose: boolean
Methods
fetch
- fetch(feedHash): Promise<any>
Returns Promise<any>
- The data fetched from the crossbar
fetchSolanaUpdates
- fetchSolanaUpdates(network, feedpubkeys, numSignatures?): Promise<{
lookupTables: string[];
pullIx: TransactionInstruction;
responses: {
errors: string;
oracle: string;
result: number;
}[];
success: boolean;
}[]> Parameters
- network: string
- feedpubkeys: string[]
Optional
numSignatures: number
Returns Promise<{
lookupTables: string[];
pullIx: TransactionInstruction;
responses: {
errors: string;
oracle: string;
result: number;
}[];
success: boolean;
}[]>
- The updates for the specified feeds
simulateFeeds
- simulateFeeds(feedHashes): Promise<{
feedHash: string;
results: number[];
}[]> Returns Promise<{
feedHash: string;
results: number[];
}[]>
- The simulated feed results
simulateSolanaFeeds
- simulateSolanaFeeds(network, feedpubkeys): Promise<{
feed: string;
feedHash: string;
results: number[];
}[]> Parameters
- network: string
- feedpubkeys: string[]
Returns Promise<{
feed: string;
feedHash: string;
results: number[];
}[]>
- The simulated feed results
store
- store(queueAddress, jobs): Promise<{
cid: string;
feedHash: string;
queueHex: string;
}> Parameters
- queueAddress: string
- jobs: IOracleJob[]
Returns Promise<{
cid: string;
feedHash: string;
queueHex: string;
}>
- The stored data information
Static
default
- default(verbose?): CrossbarClient
Parameters
Optional
verbose: boolean
GET /fetch/:feedHash Fetch data from the crossbar using the provided feedHash