Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@web3-storage/aggregate-client

Package Overview
Dependencies
Maintainers
7
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3-storage/aggregate-client

The web3.storage aggregate client

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-95.83%
Maintainers
7
Weekly downloads
 
Created
Source


web3.storage

The aggregate client for https://web3.storage

About

The @web3-storage/aggregate-client package provides the "low level" client API for aggregating data uploaded with the w3up platform. It is based on [web3-storage/specs/w3-aggregation.md])https://github.com/web3-storage/specs/blob/feat/filecoin-spec/w3-aggregation.md) and is not intended for web3.storage end users.

Install

Install the package using npm:

npm install @web3-storage/aggregate-client

Usage

aggregateOffer

function aggregateOffer(
  conf: InvocationConfig,
  offers: Offer[],
): Promise<{ status: string }>

Ask the service to create an aggregate offer and put it available for Storage Providers.

More information: InvocationConfig

aggregateGet

function aggregateGet(
  conf: InvocationConfig,
  commitmentProof: string, // TODO: ProofLink
): Promise<unkown> // TODO: type

Ask the service to get deal details of an aggregate.

More information: InvocationConfig

Types

Offer

An offered CAR to be part of an Aggregate.

export interface Offer {
  link: CARLink
  size: number
  commitmentProof: string // TODO: ProofLink
  src: OfferSrc[]
}

InvocationConfig

This is the configuration for the UCAN invocation. It is an object with issuer, audience, resource and proofs:

  • The issuer is the signing authority that is issuing the UCAN invocation(s).
  • The audience is the principal authority that the UCAN is delegated to.
  • The resource (with field) points to a storage space.
  • The proofs are a set of capability delegations that prove the issuer has the capability to perform the action. These might not be required.

Contributing

Feel free to join in. All welcome. Please open an issue!

License

Dual-licensed under MIT + Apache 2.0

FAQs

Package last updated on 07 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc