# @0x/sol-trace

> Prints stack trace on Solidity revert

Latest version **3.0.49** (published 2023-04-07) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @0x/sol-trace
pnpm add @0x/sol-trace
yarn add @0x/sol-trace
bun add @0x/sol-trace
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.49 |
| Published | 2023-04-07 |
| First published | 2019-01-11 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=6.12 |
| Dependencies | 10 |
| Unpacked size | 39.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 98 |
| Maintainers | rhinodavid, mwelche, savdont, eobbad, aeph4muh, idokleinman, jadetran, kyuc, henryzhu, tobernguyen, dex_tracker, dekz, amirbandeali, phil-ociraptor |

## Links

- npm: https://www.npmjs.com/package/@0x/sol-trace
- Repository: https://github.com/0xProject/tools
- Homepage: https://github.com/0xProject/tools/tree/main/sol-trace
- Issues: https://github.com/0xProject/tools/issues
- npm.io page: https://npm.io/package/@0x/sol-trace

## Dependencies (10)

- [chalk](https://npm.io/package/chalk.md) ^2.3.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [loglevel](https://npm.io/package/loglevel.md) ^1.6.1
- [@types/node](https://npm.io/package/@types/node.md) 12.12.54
- [ethereum-types](https://npm.io/package/ethereum-types.md) ^3.7.1
- [ethereumjs-util](https://npm.io/package/ethereumjs-util.md) ^7.1.5
- [@0x/subproviders](https://npm.io/package/@0x/subproviders.md) ^8.0.1
- [web3-provider-engine](https://npm.io/package/web3-provider-engine.md) 16.0.4
- [@0x/sol-tracing-utils](https://npm.io/package/@0x/sol-tracing-utils.md) ^7.3.5
- [@0x/typescript-typings](https://npm.io/package/@0x/typescript-typings.md) ^5.3.2

## Recent versions

- 3.0.49 (latest) — 2023-04-07
- 2.1.0-beta.4 (protocolV3) — 2019-12-02
- 3.0.48 — 2023-04-07
- 3.0.47 — 2023-01-26
- 3.0.46 — 2022-08-18
- 3.0.45 — 2022-03-16
- 3.0.44 — 2022-03-16
- 3.0.43 — 2022-02-26
- 3.0.42 — 2022-01-19
- 3.0.41 — 2021-10-27
- 3.0.40 — 2021-09-23
- 3.0.39 — 2021-08-25
- 3.0.38 — 2021-06-28
- 3.0.37 — 2021-04-28
- 3.0.36 — 2021-04-26
- … 63 more at https://npm.io/package/@0x/sol-trace/versions

## README

## @0x/sol-trace

Prints a stack trace when a revert is encountered.

### Read the [Documentation](https://0x.org/docs/tools/sol-trace).

## Installation

```bash
yarn add @0x/sol-trace
```

**Import**

```javascript
import { RevertTraceSubprovider } from '@0x/sol-trace';
```

or

```javascript
var RevertTraceSubprovider = require('@0x/sol-trace').RevertTraceSubprovider;
```

## Contributing

We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository.

Please read our [contribution guidelines](../../CONTRIBUTING.md) before getting started.

### Install dependencies

If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:

```bash
yarn config set workspaces-experimental true
```

Then install dependencies

```bash
yarn install
```

### Build

To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:

```bash
PKG=@0x/sol-trace yarn build
```

Or continuously rebuild on change:

```bash
PKG=@0x/sol-trace yarn watch
```

### Clean

```bash
yarn clean
```

### Lint

```bash
yarn lint
```

### Run Tests

```bash
yarn test
```

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