UNPKG

o3-dapi-ont

Version:
18 lines (15 loc) 384 B
import { sendMessage } from '../../messaging'; import { Command } from '../../constants'; import { Parameter } from './common'; interface InvokeReadInput { scriptHash: string; operation: string; args?: Parameter[]; network: string; } export function invokeRead(data: InvokeReadInput): Promise<any> { return sendMessage({ command: Command.invokeRead, data, }); }