0.1.1 • Published 4 months ago
arseeding-js-fido v0.1.1
arseeding-js
Install
npm i arseeding-js
example
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
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
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
0.0.30
4 months ago
0.0.31
4 months ago
0.0.32
4 months ago
0.0.33
4 months ago
0.0.34
4 months ago
0.1.0
4 months ago
0.1.1
4 months ago
0.0.29
4 months ago
0.0.26
4 months ago
0.0.27
4 months ago
0.0.28
4 months ago
0.0.21
4 months ago
0.0.22
4 months ago
0.0.23
4 months ago
0.0.24
4 months ago
0.0.25
4 months ago
0.0.20
4 months ago
0.0.10
4 months ago
0.0.11
4 months ago
0.0.12
4 months ago
0.0.13
4 months ago
0.0.14
4 months ago
0.0.15
4 months ago
0.0.9
4 months ago
0.0.16
4 months ago
0.0.17
4 months ago
0.0.18
4 months ago
0.0.19
4 months ago
0.0.8
4 months ago
0.0.7
4 months ago
0.0.6
4 months ago
0.0.5
4 months ago
0.0.4
4 months ago
0.0.3
4 months ago
0.0.2
4 months ago