# arseeding-js-fido

> ### Install ``` npm i arseeding-js ``` ### example ```ts import { genAPI, getTokenTagByEver } from 'arseeding-js' const instance = await genAPI(window.ethereum)

Latest version **0.1.1** (published 2024-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install arseeding-js-fido
pnpm add arseeding-js-fido
yarn add arseeding-js-fido
bun add arseeding-js-fido
```

## Health

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

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2024-01-24 |
| First published | 2024-01-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 11 |
| Unpacked size | 65.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | xaber |
| Maintainers | charles-d |

## Links

- npm: https://www.npmjs.com/package/arseeding-js-fido
- Repository: git@xaber.github.com:everFinance/arseeding-js
- npm.io page: https://npm.io/package/arseeding-js-fido

## Dependencies (11)

- [axios](https://npm.io/package/axios.md) ^0.21.1
- [ethers](https://npm.io/package/ethers.md) ^5.7.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [everpay](https://npm.io/package/everpay.md) ^1.1.3
- [crypto-js](https://npm.io/package/crypto-js.md) ^4.2.0
- [mime-types](https://npm.io/package/mime-types.md) ^2.1.35
- [bignumber.js](https://npm.io/package/bignumber.js.md) ^9.0.2
- [arbundles-fido](https://npm.io/package/arbundles-fido.md) ^0.1.0
- [crypto-browserify](https://npm.io/package/crypto-browserify.md) ^3.12.0
- [arseeding-arbundles](https://npm.io/package/arseeding-arbundles.md) 0.6.27
- [@supercharge/promise-pool](https://npm.io/package/@supercharge/promise-pool.md) ^2.3.2

## Recent versions

- 0.1.1 (latest) — 2024-01-24
- 0.1.0 — 2024-01-24
- 0.0.34 — 2024-01-24
- 0.0.33 — 2024-01-23
- 0.0.32 — 2024-01-23
- 0.0.31 — 2024-01-23
- 0.0.30 — 2024-01-23
- 0.0.29 — 2024-01-23
- 0.0.28 — 2024-01-22
- 0.0.27 — 2024-01-21
- 0.0.26 — 2024-01-21
- 0.0.25 — 2024-01-20
- 0.0.24 — 2024-01-20
- 0.0.23 — 2024-01-20
- 0.0.22 — 2024-01-20
- … 20 more at https://npm.io/package/arseeding-js-fido/versions

## README

# arseeding-js

### Install
```
npm i arseeding-js
```
### example
```ts
import { genAPI, getTokenTagByEver } from 'arseeding-js'
const instance = await genAPI(window.ethereum)

const arseedUrl = 'https://arseed.web3infra.dev'
const data = Buffer.from('........')
const tokenTags = await getTokenTagByEver('usdc')  // everpay supported all tokens
const payCurrencyTag = tokenTags[0]
const ops = {
    tags: [{name: "Content-Type",value:'data type'}]
}
const res = await instance.sendAndPay(arseedUrl, data, payCurrencyTag, ops)
console.log('res',res)

// review data
curl --location --request GET 'https://arseed.web3infra.dev/{{res.order.itemId}}'
```

### example2 - node
```ts
import { genNodeAPI } from 'arseeding-js'

const instance = await genNodeAPI('YOUR PRIVATE KEY')
const tokenTags = await getTokenTagByEver('usdc')  // everpay supported all tokens
const payCurrencyTag = tokenTags[0]

instance.sendAndPay('https://arseed.web3infra.dev', Buffer.from('aa bb cc'), payCurrencyTag, {})
```

### example3 - upload folder
```ts
import {batchPayOrders, uploadFolder, uploadFolderAndPay} from "arseeding-js/cjs/uploadFolder";

const path = './src/nft'
const priv = 'PRIVATE KEY'
const url = 'https://arseed.web3infra.dev'
const tokenTags = await getTokenTagByEver('usdc')  // everpay supported all tokens
const payCurrencyTag = tokenTags[0]
const indexFile = ''

uploadFolderAndPay(path,priv,url,payCurrencyTag, indexFile).then((res)=>{
  console.log(res)
}).catch((err)=>{
  console.log(err)
})

// review manifest Data
curl --location --request GET 'https://arseed.web3infra.dev/{res.maniId}'
```
uploadFolderAndPay can be divided by uploadFolder and batchPayOrders

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