@sofaws/dapp-core
Version:
A library to hold the main logic for a dapp on the Elrond Network
3 lines (2 loc) • 440 B
JavaScript
import{g as o}from"./chunk-V2DQWH6R.js";import{a as r}from"./chunk-UB233QTH.js";import{j as n,m as e}from"./chunk-HBP5N4FR.js";e();import m from"axios";function l(s){return n(this,null,function*(){let{apiAddress:a,apiTimeout:i}=o(r.getState()),p=s.map(t=>m.post(`${a}/transactions`,t.toPlainObject(),{timeout:parseInt(i)}));return(yield Promise.all(p)).map(({data:t})=>t.txHash)})}export{l as a};
//# sourceMappingURL=chunk-O3T3K2LX.js.map