Learn how to make HTTP requests to NEAR
import axios from 'axios' let rpc = axios.create({ baseURL: 'https://rpc.testnet.near.org', crossdomain: true, headers: { 'Content-Type': 'application/json', 'X-Requested-With': 'XMLHttpRequest', 'Accept': 'application/json' } })
NEAR RPC Documentation