@@ -55,6 +55,56 @@ The blob upload failed.
55
55
56
56
---
57
57
58
+ # ` xyz.taluslabs.storage.walrus.upload-file@1 `
59
+
60
+ Standard Nexus Tool that uploads a file to Walrus and returns the blob ID.
61
+
62
+ ## Input
63
+
64
+ ** ` file_path ` : [ ` String ` ] **
65
+
66
+ The path to the file to upload.
67
+
68
+ _ opt_ ** ` publisher_url ` : [ ` Option<String> ` ] ** _ default_ : [ ` None ` ]
69
+
70
+ The walrus publisher URL.
71
+
72
+ _ opt_ ** ` epochs ` : [ ` u64 ` ] ** _ default_ : [ ` 1 ` ]
73
+
74
+ Number of epochs to store the file.
75
+
76
+ _ opt_ ** ` send_to ` : [ ` Option<String> ` ] ** _ default_ : [ ` None ` ]
77
+
78
+ Optional address to which the created Blob object should be sent.
79
+
80
+ ## Output Variants & Ports
81
+
82
+ ** ` newly_created ` **
83
+
84
+ A new blob was created and uploaded successfully.
85
+
86
+ - ** ` newly_created.blob_id ` : [ ` String ` ] ** - The unique identifier for the uploaded blob
87
+ - ** ` newly_created.end_epoch ` : [ ` u64 ` ] ** - The epoch at which the blob will expire
88
+ - ** ` newly_created.sui_object_id ` : [ ` String ` ] ** - Sui object ID of the newly created blob
89
+
90
+ ** ` already_certified ` **
91
+
92
+ The blob was already certified in the blockchain.
93
+
94
+ - ** ` already_certified.blob_id ` : [ ` String ` ] ** - The unique identifier for the blob
95
+ - ** ` already_certified.end_epoch ` : [ ` u64 ` ] ** - The epoch at which the blob will expire
96
+ - ** ` already_certified.tx_digest ` : [ ` String ` ] ** - Transaction digest of the certified blob
97
+
98
+ ** ` err ` **
99
+
100
+ The file upload failed.
101
+
102
+ - ** ` err.reason ` : [ ` String ` ] ** - A detailed error message describing what went wrong
103
+ - ** ` err.kind ` : [ ` UploadErrorKind ` ] ** - Type of error that occurred
104
+ - Possible kinds:
105
+ - ` network ` - Error during HTTP requests or network connectivity issues
106
+ - ` validation ` - Invalid file data or file validation failures
107
+
58
108
# ` xyz.taluslabs.storage.walrus.read-json@1 `
59
109
60
110
Standard Nexus Tool that reads a JSON file from Walrus and returns the JSON data. The tool can also validate the JSON data against a provided schema.
0 commit comments