C# Class Ipfs.Commands.IpfsBlock

Inheritance: Ipfs.Json.IpfsCommand
Afficher le fichier Open project: TrekDev/net-ipfs-api

Méthodes publiques

Méthode Description
Get ( string key ) : Task

ipfs block get - Get a raw IPFS block 'ipfs block get' is a plumbing command for retreiving raw ipfs blocks.

Put ( byte data ) : Task

ipfs block put - Stores input as an IPFS block ipfs block put is a plumbing command for storing raw ipfs blocks. It reads from stdin, and is a base58 encoded multihash.

Stat ( string key ) : Task

Print information of a raw IPFS block

Private Methods

Méthode Description
IpfsBlock ( Uri commandUri, HttpClient httpClient, IJsonSerializer jsonSerializer ) : Ipfs.Json

Method Details

Get() public méthode

ipfs block get - Get a raw IPFS block 'ipfs block get' is a plumbing command for retreiving raw ipfs blocks.
public Get ( string key ) : Task
key string The base58 multihash of an existing block to get
Résultat Task

Put() public méthode

ipfs block put - Stores input as an IPFS block ipfs block put is a plumbing command for storing raw ipfs blocks. It reads from stdin, and is a base58 encoded multihash.
public Put ( byte data ) : Task
data byte The data to be stored as an IPFS block
Résultat Task

Stat() public méthode

Print information of a raw IPFS block
public Stat ( string key ) : Task
key string The base58 multihash of an existing block to get
Résultat Task