#storage-api #nft #did #storing #compatible #api-version #storage-service

nft_storage_api

A Rust client for interacting with the NFT.storage service, providing a user-friendly wrapper around its API. It facilitates operations such as storing ERC-1155 compatible NFTs, uploading files, managing digital assets, and handling decentralized identities (DIDs). Built with async support for seamless integration with modern Rust applications.

2 stable releases

1.1.0 Dec 25, 2023
1.0.0 Nov 3, 2023

#40 in #storage-api


Used in 2 crates

MIT license

68KB
1.5K SLoC

Rust API client for openapi

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

Overview

This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.RustClientCodegen

Installation

Put the package under your project folder in a directory named openapi and add the following to Cargo.toml under [dependencies]:

openapi = { path = "./openapi" }

Documentation for API Endpoints

All URIs are relative to https://api.nft.storage

Class Method HTTP request Description
NftStorageApi check GET /check/{cid} Check if a CID of an NFT is being stored by nft.storage.
NftStorageApi delete DELETE /{cid} Stop storing the content with the passed CID
NftStorageApi did_get GET /did Get nft.storage DID
NftStorageApi list GET / List all stored files
NftStorageApi status GET /{cid} Get information for the stored file CID
NftStorageApi store POST /store Store an ERC-1155 compatible NFT
NftStorageApi ucan_token_post POST /ucan/token Get a root UCAN.
NftStorageApi upload POST /upload Store a file
NftStorageApi user_did_post POST /user/did Register a DID for a user.

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Author

Dependencies

~6–18MB
~263K SLoC