This project used in "axios": "^1.3.4"
Provide postJSON
methods for @edgematrixjs/rtc
"axios": "^1.3.4"
npm install --save @edgematrixjs/http
import { Http } from '@edgematrixjs/http';
import { RTC } from '@edgematrixjs/rtc';
const rtc = new RTC({ debug: false });
const chainId = 2;
const privateKey = '{privatekey}';
const network = 'https://oregon.edgematrix.xyz';
const http = new Http({ baseURL: network });
rtc.createSubject(chainId, privateKey, http);
postJSON(options: AxiosRequestConfig)
- Similar to Axios
post(options: AxiosRequestConfig)
- Similar to Axios
get(options: AxiosRequestConfig)
- Similar to Axios