# payed

> Confirm ethereum payments

Latest version **1.0.1** (published 2023-05-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install payed
pnpm add payed
yarn add payed
bun add payed
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-05-07 |
| First published | 2023-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ngn |
| Maintainers | ngn13 |
| Keywords | ethereum, payment, api, etherscan |

## Links

- npm: https://www.npmjs.com/package/payed
- Repository: https://github.com/ngn13/payed
- Homepage: https://github.com/ngn13/payed#readme
- Issues: https://github.com/ngn13/payed/issues
- npm.io page: https://npm.io/package/payed

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^1.4.0

## Recent versions

- 1.0.1 (latest) — 2023-05-07
- 1.0.0 — 2023-05-07

## README

# Payed
Payed is a NodeJS module that lets you check if a transaction is made on
the ethereum network. It works using the [etherscan API](https://docs.etherscan.io/api-endpoints)
so you will need to get an [etherscan API key](https://docs.etherscan.io/getting-started/creating-an-account)

### Install
```
npm i payed
```

### Initializing
First you will need import `Payed`:
```
import Payed from "payed"
```
Then you can initialize it by providing your API key:
```
const payed = new Payed("YOUR_API_KEY")
```

### Usage
To use `payed` to confirm a payment, you can use the `confirm` method
```
let res = await payed.confirm(
    "SOURCE_ADDRESS", 
    "DESTINATION_ADDRESS", 
    "PAYMENT_AMOUNT_IN_USD"
)
console.log("Confirmed?", res)
```
Or you can use the `.then()` syntax:
```
payed.confirm(
    "SOURCE_ADDRESS", 
    "DESTINATION_ADDRESS", 
    "PAYMENT_AMOUNT_IN_USD"
).then(res=>{
    console.log("Confirmed?", res)
}).catch(err=>{
    console.log("Error!", err)
})
```

### License
This project is under MIT license, feel free to use it in your projects

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