1 | <?php |
||
24 | final class Dag implements Api |
||
25 | { |
||
26 | /** |
||
27 | * Get a dag node from ipfs. |
||
28 | * |
||
29 | * @Endpoint(name="dag:get") |
||
30 | * |
||
31 | * @param string $arg the object to get Required: |
||
32 | * |
||
33 | * @return Command |
||
34 | */ |
||
35 | public function get(string $arg): Command |
||
39 | |||
40 | /** |
||
41 | * Add a dag node to ipfs. |
||
42 | * |
||
43 | * @Endpoint(name="dag:put") |
||
44 | * |
||
45 | * @param string $file the object to put Required: |
||
46 | * @param string $format format that the object will be added as |
||
47 | * @param string $inputEnc format that the input object will be |
||
48 | * |
||
49 | * @return Command |
||
50 | */ |
||
51 | public function put(string $file, string $format = 'cbor', string $inputEnc = 'json'): Command |
||
55 | } |
||
56 |