@dioxide-js/silas
Version:
RPC utility for Silas
21 lines (18 loc) • 607 B
JavaScript
import { __awaiter } from '../node_modules/tslib/tslib.es6.mjs';
import Fetcher from './request.mjs';
class ProofSvc extends Fetcher {
getProofs(params) {
return __awaiter(this, void 0, void 0, function* () {
const resp = yield this.post('proofs.get', params);
return resp;
});
}
checkProof(hash) {
return __awaiter(this, void 0, void 0, function* () {
const resp = yield this.post('proofs.check', { proof_hash: hash });
return resp;
});
}
}
export { ProofSvc as default };
//# sourceMappingURL=proof.mjs.map