o3-dapi-ont
Version:
Ontology Plugin for o3-dapi
15 lines (12 loc) • 312 B
text/typescript
import { sendMessage } from '../../../messaging';
import { Oep4Command } from '../constants';
interface DecimalsInput {
network: string;
scriptHash: string;
}
export function getDecimals(data: DecimalsInput): Promise<number> {
return sendMessage({
command: Oep4Command.getDecimals,
data,
});
}