import { BigNumber } from 'bignumber.js'; import { AccountIdentifier, AccountPermissionUpdateOptions, BlockIdentifier, CreateAssetIssueOptions, CreateTransactionOptions, DeployContractOptions, DetailOption, FreezeAccountOptions, GetCanWithdrawUnfreezeAmountOptions, TransferAssetIssueByAccountOptions, TriggerConstantContractOptions, TriggerSmartContractOptions, TronPermission, TronPrices, TronRpcSuite, TronStakeType, TronStakeTypeNumeric, TronTxRawBody, UnFreezeAccountOptions, UpdateAssetOptions, VisibleAndPermissionIdOptions, VisibleOption } from '../../dto'; import { AbstractBatchRpc } from './generic'; export declare class TronRpc extends AbstractBatchRpc implements TronRpcSuite { _id: string; constructor(id: string); accountPermissionUpdate(ownerAddress: string, actives: TronPermission[], owner: TronPermission, options?: AccountPermissionUpdateOptions): Promise; broadcastHex(transaction: string): Promise; broadcastTransaction(rawBody: TronTxRawBody): Promise; clearAbi(ownerAddress: string, contractAddress: string, options?: VisibleOption): Promise; createAccount(ownerAddress: string, accountAddress: string, options?: VisibleAndPermissionIdOptions): Promise; createAssetIssue(ownerAddress: string, name: string, abbr: string, totalSupply: number, trxNum: number, num: number, startTime: number, endTime: number, url: string, options?: CreateAssetIssueOptions): Promise; createTransaction(ownerAddress: string, toAddress: string, amount: BigNumber, options?: CreateTransactionOptions): Promise; delegateResource(ownerAddress: string, receiverAddress: string, balance: BigNumber, resource: TronStakeType, lock: boolean, options?: VisibleAndPermissionIdOptions): Promise; deployContract(abi: string, bytecode: string, ownerAddress: string, name: string, options?: DeployContractOptions): Promise; estimateEnergy(ownerAddress: string, contractAddress: string, functionSelector: string, parameter: string, options?: VisibleOption): Promise; freezeBalance(ownerAddress: string, frozenBalance: BigNumber, frozenDuration: number, resource: TronStakeType, options?: FreezeAccountOptions): Promise; freezeBalanceV2(ownerAddress: string, frozenBalance: BigNumber, resource: TronStakeType, options?: VisibleAndPermissionIdOptions): Promise; getAccount(address: string, options?: VisibleOption): Promise; getAccountBalance(accountIdentifier: AccountIdentifier, blockIdentifier: BlockIdentifier, options?: VisibleOption): Promise; getAccountNet(address: string, options?: VisibleOption): Promise; getAccountResources(address: string, options?: VisibleOption): Promise; getAssetIssueByAccount(address: string, options?: VisibleOption): Promise; getAssetIssueById(value: number): Promise; getAssetIssueByName(value: string): Promise; getAssetIssueList(): Promise; getAssetIssueListByName(value: string): Promise; getAvailableUnfreezeCount(ownerAddress: string, options?: VisibleOption): Promise; getBandwidthPrices(): Promise; getBlock(idOrNum: string, options?: DetailOption): Promise; getBlockBalance(hash: string, number: BigNumber, options?: VisibleOption): Promise; getBlockById(id: string): Promise; getBlockByLatestNum(num: number): Promise; getBlockByLimitNext(startNum: number, endNum: number): Promise; getBlockByNum(num: number): Promise; getBurnTRX(): Promise; getCanDelegatedMaxSize(ownerAddress: string, type: TronStakeTypeNumeric, options?: VisibleOption): Promise; getCanWithdrawUnfreezeAmount(ownerAddress: string, options?: GetCanWithdrawUnfreezeAmountOptions): Promise; getChainParameters(): Promise; getContract(value: string, options?: VisibleOption): Promise; getContractInfo(value: string, options?: VisibleOption): Promise; getDelegatedResource(fromAddress: string, toAddress: string, options?: VisibleOption): Promise; getDelegatedResourceAccountIndex(value: string, options?: VisibleOption): Promise; getDelegatedResourceAccountIndexV2(value: string, options?: VisibleOption): Promise; getDelegatedResourceV2(fromAddress: string, toAddress: string, options?: VisibleOption): Promise; getEnergyPrices(): Promise; getNodeInfo(): Promise; getNowBlock(): Promise; getPaginatedAssetIssueList(offset: number, limit: number): Promise; getTransactionById(value: string, options?: VisibleOption): Promise; getTransactionInfoByBlockNum(num: number): Promise; getTransactionInfoById(value: string): Promise; listNodes(): Promise; participateAssetIssue(toAddress: string, ownerAddress: string, assetName: string, amount: BigNumber, options?: VisibleOption): Promise; transferAsset(ownerAddress: string, toAddress: string, assetName: string, amount: BigNumber, options?: TransferAssetIssueByAccountOptions): Promise; triggerConstantContract(ownerAddress: string, contractAddress: string, functionSelector: string, parameter: string, options?: TriggerConstantContractOptions): Promise; triggerSmartContract(ownerAddress: string, contractAddress: string, functionSelector: string, parameter: string, options?: TriggerSmartContractOptions): Promise; unDelegateResource(ownerAddress: string, receiverAddress: string, balance: BigNumber, resource: TronStakeType, lock: boolean, options?: VisibleAndPermissionIdOptions): Promise; unfreezeAsset(ownerAddress: string, options?: VisibleAndPermissionIdOptions): Promise; unfreezeBalance(ownerAddress: string, resource: TronStakeType, options?: UnFreezeAccountOptions): Promise; unfreezeBalanceV2(ownerAddress: string, unfreezeBalance: BigNumber, resource: TronStakeType, options?: VisibleAndPermissionIdOptions): Promise; updateAccount(ownerAddress: string, accountName: string, options?: VisibleAndPermissionIdOptions): Promise; updateAsset(ownerAddress: string, url: string, options?: UpdateAssetOptions): Promise; updateEnergyLimit(ownerAddress: string, contractAddress: string, originEnergyLimit: number, options?: VisibleAndPermissionIdOptions): Promise; updateSetting(ownerAddress: string, contractAddress: string, consumeUserResourcePercent: number, options?: VisibleAndPermissionIdOptions): Promise; validateAddress(address: string, options?: VisibleOption): Promise; withdrawExpireUnfreeze(ownerAddress: string, options?: VisibleAndPermissionIdOptions): Promise; }