UNPKG

@dioxide-js/silas

Version:

RPC utility for Silas

29 lines (28 loc) 940 B
import { Alg } from '../utils'; import Request from './request'; import { AddrBaseInfo, BalanceItem, DIOX, TxSumList, AddressGenerated } from './type'; type ListParmas = { address?: string; addresstxntype?: string; shardIndex?: string; height?: number; pos?: number; limit?: number; }; declare class AddressService extends Request { private checkAddress; generate(alg?: Alg, privatekey?: Uint8Array | string): Promise<AddressGenerated>; getISN(address: string): Promise<number>; getTxnListByAddress(params?: ListParmas): Promise<TxSumList>; getAddressState(data: { address: string; contract: string; }): Promise<AddrBaseInfo>; getAddressInfo(address: string): Promise<DIOX.Address>; getBalance(address: string): Promise<BalanceItem>; getUserRegState(params: { address: string; id: string; }): Promise<boolean>; } export default AddressService;