Skip to content
Snippets Groups Projects
AeternityService.d.ts 514 B
Newer Older
  • Learn to ignore specific revisions
  • import { BlockData, TxData, TxMerkleTreeData } from "../types";
    
    Igor Markin's avatar
    Igor Markin committed
    declare class AeternityService {
    
    Igor Markin's avatar
    Igor Markin committed
        private _nodeUrl;
        private _compilerUrl;
        private _contractBytecode;
        constructor(nodeUrl: string, compilerUrl: string, contractBytecode: string);
        getTxDataByHash(hash: string): Promise<TxData>;
        decodeContractCallData(callData: string): Promise<TxMerkleTreeData>;
        getBlockData(height: number): Promise<BlockData>;
        getBlockhainHeight(): Promise<number>;
    
    Igor Markin's avatar
    Igor Markin committed
    }
    export default AeternityService;