# @glif/filecoin-message-confirmer

> A service for confirming a Filecoin message.

Latest version **4.0.0** (published 2025-04-25) · (Apache-2.0 OR MIT) license · 0 weekly downloads

## Install

```sh
npm install @glif/filecoin-message-confirmer
pnpm add @glif/filecoin-message-confirmer
yarn add @glif/filecoin-message-confirmer
bun add @glif/filecoin-message-confirmer
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2025-04-25 |
| First published | 2020-10-12 |
| Weekly downloads | 0 |
| License | (Apache-2.0 OR MIT) |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 62.2 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Infinite Scroll <squad@infinitescroll.org> (https://infinitescroll.org) |
| Maintainers | schwartzz8990, bret, glifbot |

## Links

- npm: https://www.npmjs.com/package/@glif/filecoin-message-confirmer
- Repository: https://github.com/glifio/modules/tree/primary/packages/filecoin-message-confirmer
- npm.io page: https://npm.io/package/@glif/filecoin-message-confirmer

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.27.2
- [@glif/filecoin-rpc-client](https://npm.io/package/@glif/filecoin-rpc-client.md) ^4.0.0

## Recent versions

- 4.0.0 (latest) — 2025-04-25
- 3.0.2 — 2024-02-06
- 3.0.0 — 2024-01-15
- 2.0.44 — 2023-03-11
- 2.0.43 — 2023-03-11
- 2.0.8 — 2022-10-13
- 2.0.7 — 2022-10-05
- 2.0.1 — 2022-08-31
- 2.0.0-beta.12 — 2022-05-06
- 2.0.0-beta.8 — 2022-04-07
- 2.0.0-beta.7 — 2022-04-07
- 2.0.0-beta.4 — 2022-03-28
- 2.0.0-beta.0 — 2022-02-22
- 2.0.0-alpha.13 — 2022-01-18
- 2.0.0-alpha.11 — 2022-01-10
- … 21 more at https://npm.io/package/@glif/filecoin-message-confirmer/versions

## README

# filecoin-message

## :warning: UNMAINTAINED PACKAGE :warning:

This package is no longer maintained. We highly recommend looking for alternative solutions.

--- 

## Install

`npm i @glif/filecoin-message-confirmer`

## Usage

```js
const confirmMessage = require('@glif/filecoin-message-confirmer')

const messageCid =
  'bafy2bzacebnyjf5oxzvts5f4ifqgee2yrqb7epdepnw3y2yk25ju5su2episg'
const optionalConfig = {}
const confirmed = await confirmMessage(messageCid, optionalConfig)
// > true if message is confirmed
// > false if message happened far in the past (just use a block explorer) or if the message isn't yet confirmed after ~7-8 minutes after sending
```

The confirmer takes an optional config:

```ts
interface ConfirmerConfig {
  apiAddress: string
  token?: string
  // the amount of time to timeout the request
  timeoutAfter?: number
  // the number of times this function calls itself, recursively
  totalRetries?: number
}
```

It's recommended to stick with the default values for `timeoutAfter` (90000 ms) and `totalRetries` (5 times)

## Test

`npm i`<br/>
`npm run test`

## License

This repository is dual-licensed under Apache 2.0 and MIT terms.

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