---
id: "_utils_web_"
title: "utils/web"
sidebar_label: "utils/web"
---

## Index

### Interfaces

* [ConnectionInfo](../interfaces/_utils_web_.connectioninfo.md)

### Variables

* [fetch](_utils_web_.md#let-fetch)

### Functions

* [fetchJson](_utils_web_.md#fetchjson)

## Variables

### `Let` fetch

• **fetch**: *any*

*Defined in [src.ts/utils/web.ts:15](https://github.com/nearprotocol/nearlib/blob/de49029/src.ts/utils/web.ts#L15)*

## Functions

###  fetchJson

▸ **fetchJson**(`connection`: string | [ConnectionInfo](../interfaces/_utils_web_.connectioninfo.md), `json?`: string): *Promise‹any›*

*Defined in [src.ts/utils/web.ts:41](https://github.com/nearprotocol/nearlib/blob/de49029/src.ts/utils/web.ts#L41)*

**Parameters:**

Name | Type |
------ | ------ |
`connection` | string &#124; [ConnectionInfo](../interfaces/_utils_web_.connectioninfo.md) |
`json?` | string |

**Returns:** *Promise‹any›*
