@aptos-labs/ts-sdk
Version:
Aptos TypeScript SDK
2 lines • 831 B
JavaScript
import{a as c}from"./chunk-VJL6AF64.mjs";import{a as e,b as s,c as r,d as n,e as t,g as i,h as a}from"./chunk-OIH4KBXW.mjs";var g=class{constructor(o){this.config=o}async getLedgerInfo(){return e({aptosConfig:this.config})}async getChainId(){return(await this.getLedgerInfo()).chain_id}async getBlockByVersion(o){return s({aptosConfig:this.config,...o})}async getBlockByHeight(o){return r({aptosConfig:this.config,...o})}async view(o){return c({aptosConfig:this.config,...o})}async getChainTopUserTransactions(o){return n({aptosConfig:this.config,...o})}async queryIndexer(o){return t({aptosConfig:this.config,...o})}async getIndexerLastSuccessVersion(){return i({aptosConfig:this.config})}async getProcessorStatus(o){return a({aptosConfig:this.config,processorType:o})}};export{g as a};
//# sourceMappingURL=chunk-VEB6NALT.mjs.map