o3-dapi-ont
Version:
Ontology Plugin for o3-dapi
18 lines (15 loc) • 384 B
text/typescript
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,
});
}