UNPKG

@tronlink/core

Version:

The library serves as a core module within TronLink Extension, which provides low-level wallet functionality for both Tron and Ethereum networks, primary features includes account generation and transaction signing

30 lines 812 B
import axiosFaker from './axiosFaker'; class fetchApi extends axiosFaker { async get(url, options) { options.method = 'GET'; options.url = url; return this.request(options); } async post(url, options) { options.method = 'POST'; options.url = url; return this.request(options); } async delete(url, options) { options.method = 'DELETE'; options.url = url; return this.request(options); } async put(url, options) { options.method = 'PUT'; options.url = url; return this.request(options); } async patch(url, options) { options.method = 'PATCH'; options.url = url; return this.request(options); } } export default fetchApi; //# sourceMappingURL=fetch.js.map