# @bitgo/statics

> dependency-free static configuration for the bitgo platform

Latest version **59.32.1** (published 2026-11-18) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @bitgo/statics
pnpm add @bitgo/statics
yarn add @bitgo/statics
bun add @bitgo/statics
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support; large bundle.

## Facts

| | |
|---|---|
| Version | 59.32.1 |
| Published | 2026-11-18 |
| First published | 2019-05-21 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 395 |
| Author | BitGo SDK Team |
| Maintainers | louib-bitgo, bitgobot |

## Links

- npm: https://www.npmjs.com/package/@bitgo/statics
- Repository: https://github.com/BitGo/BitGoJS
- Homepage: https://github.com/BitGo/BitGoJS#readme
- Issues: https://github.com/BitGo/BitGoJS/issues
- npm.io page: https://npm.io/package/@bitgo/statics

## Recent versions

- 59.32.1 (latest) — 2026-11-18
- 8.0.0-rc.23 (rc) — 2022-09-29
- 6.18.0-dev.0 (dev) — 2022-06-18
- 6.15.1-node12.2 (node12) — 2022-02-04
- 5.1.1-hbar.0 (hbar) — 2020-09-20
- 3.4.5-alpha.0 (alpha) — 2020-04-01
- 59.32.0 — 2026-11-17
- 59.31.0 — 2026-11-12
- 59.30.0 — 2026-11-10
- 59.29.0 — 2026-11-05
- 59.28.0 — 2026-11-03
- 59.27.0 — 2026-10-29
- 59.26.0 — 2026-10-27
- 59.25.0 — 2026-10-22
- 59.24.0 — 2026-10-20
- … 535 more at https://npm.io/package/@bitgo/statics/versions

## README

<h1 style="text-align: center;">
  <pre>@bitgo/statics</pre>
</h1>
<h3 style="text-align: center;">
  Static config for the BitGo platform
</h3>

## Goals

- Provide an "encyclopedia" of all relevant constants which are sprinkled throughout the BitGo stack.
- Separate _static_ config data from _dynamic_ config data
- Strong typing for static config properties, with full type information for configuration items
- Ability to export static configuration as JSON for consumption by non-javascript projects

## Examples

### Get the number of decimal places in a Bitcoin

#### JavaScript

```js
const { coins } = require('@bitgo/statics');

const btc = coins.get('btc');
console.log(btc.decimalPlaces);
```

#### TypeScript

```typescript
import { coins } from '@bitgo/statics';

const btc = coins.get('btc');
console.log(btc.decimalPlaces);
```

### Get the contract address for the OmiseGo ERC20 Token

#### JavaScript

```js
const { coins } = require('@bitgo/statics');

const omg = coins.get('omg');
console.log(omg.contractAddress);
```

#### TypeScript

```typescript
import { coins, Erc20Coin } from '@bitgo/statics';

const omg = coins.get('omg');
if (omg instanceof Erc20Coin) {
  console.log(omg.contractAddress);
}
```

### List full names of all defined coins

#### JavaScript

```js
const { coins } = require('@bitgo/statics');

coins.forEach((coin) => {
  console.log(coin.fullName);
});
```

#### TypeScript

```typescript
import { coins } from '@bitgo/statics';

coins.forEach((coin) => {
  console.log(coin.fullName);
});
```

## Repo Status

- UTXO and account base types are defined
- Documentation is mostly source code comments and README examples
- This library can be depended on, but expect some changes going forward

## Project Structure

- `src/base.ts`: Interfaces and enums used by coin implementation classes.
- `src/coins.ts`: Coin definitions.
- `src/networks.ts`: Network interfaces and implementation classes.
- `src/utxo.ts`: Unspent Transaction Output (UTXO) based coin classes and factory function.
- `src/account.ts`: Account-based coin classes and factory methods. Includes ERC20 factory functions.
- `src/errors.ts`: Custom Error classes.

## Installation + Building

To install the project locally, run the following steps:

```
$ # clone the project locally
$ git clone git@github.com:BitGo/statics.git

$ # npm install dependencies (optionally use node >8.6.0)
$ # (optionally) nvm install 8.6.0 -- required to run the linter which is executed pre-commit
$ # (optionally) nvm use 8.6.0
$ npm install
```

To build the project (from TypeScript to JavaScript):

```
$ npm run build
```

This builds the JavaScript and adds it to `dist/src/`. You will receive compilation errors if you have invalid syntax.

## Tests

To run tests:

```
$ npm run test
```

---
_Source: https://npm.io/package/@bitgo/statics · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
