C# Class Ipfs.Commands.IpfsBlock

Inheritance: Ipfs.Json.IpfsCommand
Datei anzeigen Open project: TrekDev/net-ipfs-api

Public Methods

Method 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

Method Description
IpfsBlock ( Uri commandUri, HttpClient httpClient, IJsonSerializer jsonSerializer ) : Ipfs.Json

Method Details

Get() public method

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
return Task

Put() public method

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
return Task

Stat() public method

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