o3-dapi-ont
Version:
Ontology Plugin for o3-dapi
23 lines (19 loc) • 428 B
text/typescript
import { sendMessage } from '../../../messaging';
import { Oep4Command } from '../constants';
interface InitInput {
network: string;
scriptHash: string;
gasPrice?: number;
gasLimit?: number;
broadcastOverride?: boolean;
}
interface InitOutput {
txid: string;
nodeUrl: string;
}
export function init(data: InitInput): Promise<InitOutput> {
return sendMessage({
command: Oep4Command.init,
data,
});
}