UNPKG

@sofaws/dapp-core

Version:

A library to hold the main logic for a dapp on the Elrond Network

3 lines (2 loc) 324 B
import{m as h}from"./chunk-HBP5N4FR.js";h();import{Address as l}from"@elrondnetwork/erdjs";function u(c){try{let r=new l(c);return Boolean(r.bech32())}catch(r){return!1}}function g(c){return(c==null?void 0:c.startsWith("erd"))&&c.length===62&&/^\w+$/.test(c)&&u(c)}export{g as a}; //# sourceMappingURL=chunk-XAPH7V6V.js.map