Skip to main content

getBundleFee

Function

Query bundle item storage costs

Example

import { getBundleFee } from 'arseeding-js'

const run = async () => {
const arseedingUrl = 'https://arseed.web3infra.dev'
const size = '<data binary length>'
const currency = '<payment token symbol, such as eth, usdc. >'
const res = await getBundleFee(arseedingUrl, size, currency)
console.log(res)
}

Parameters

FieldDescription
arseedingUrlarseedUrl is the address of the Arseeding backend service that needs to be configured. Here we use the Arseed service provided by permadao at https://arseed.web3infra.dev.
sizedata binary length
currencypayment token symbol, such as eth, usdc.

Return Example Data

{
"currency": "USDC",
"decimals": 6,
"finalFee": "3503"
}