Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
treeder committed Sep 12, 2019
1 parent 08d29aa commit da7eed3
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ Example:
}
```

#### Try it

```sh
curl https://api.gofs.io/v0/status/bafybeida2gv6hnykvwadda6zjcxuo5yrxzb6z7j7fhi2mz7o55carn6jla
```

### Add

Add a file to IPFS by uploading to GoFS.
Expand Down Expand Up @@ -145,6 +151,12 @@ Example:
}
```

#### Try it

```sh
curl -X PUT -T myfile.png https://api.gofs.io/v0/add
```

### Convert CID

Convert an IPFS CID hash to various standard forms: binary, default base, and event topic hash.
Expand Down Expand Up @@ -182,7 +194,8 @@ interface IGOFS {
// Returns the current rate in attoGO per byte-hour.
function rate() external view returns (uint);
// Pin a CID. Value must be greater than 0. CID must not be version 0.
// Pin a CID. Value (the GO value for your transaction) must be greater than 0. The GO value you pass in
// here is how long the file will be pinned for. CID must not be version 0.
// Emits Pinned events.
function pin(bytes calldata cid) external payable;
Expand Down

0 comments on commit da7eed3

Please sign in to comment.