@helium/http
Version:
HTTP library for interacting with the Helium blockchain API
34 lines • 1.05 kB
TypeScript
import type Client from '../Client';
interface TransactionVars {
txnFeeMultiplier?: number;
dcPayloadSize?: number;
stakingFeeTxnAssertLocationV1?: number;
stakingFeeTxnAddGatewayV1?: number;
}
export default class Vars {
private client;
/**
* The chain vars needed for transaction configuration.
* @private
*/
private TXN_VARS;
private baseUrl;
constructor(client: Client);
/**
* Fetches the chain vars required to configure helium-js for blockchain transactions.
*/
getTransactionVars(): Promise<TransactionVars>;
/**
* Fetches the specific chain vars passed in keys. If called without keys it will fetch the
* transaction vars returned by {@link getTransactionVars}.
* @param keys array of chain vars to fetch eg 'poc_v4_prob_no_rssi'
*/
get(keys?: string[]): Promise<any>;
/**
* WARNING: This will be return over 10 MB of data.
* Fetches all chain vars.
*/
getAll(): Promise<any>;
}
export {};
//# sourceMappingURL=Vars.d.ts.map