Overview
This node integrates with the Steemit platform, enabling users to publish and manage content as well as interact with their Steemit accounts. Specifically, the Upload Image operation allows users to upload an image file stored in a binary property of the input data to Steemit's image hosting service. This is useful for automating the process of adding images to posts or comments on Steemit without manual uploads.
Practical examples include:
- Automatically uploading images generated or processed in previous workflow steps to Steemit.
- Enriching Steemit posts with images by first uploading them via this node and then using the returned URL in post content.
- Managing media assets programmatically within larger content publishing workflows.
Properties
| Name | Meaning |
|---|---|
| Binary Property | Name of the binary property which contains the image data to be uploaded (e.g., "data"). |
Output
The output JSON object includes the following fields:
url: The URL where the uploaded image is hosted on Steemit's image service.fileName: The original filename of the uploaded image from the binary data.signature: A cryptographic signature proving the authenticity of the upload, generated using the user's posting key.
This output enables subsequent workflow nodes to reference the uploaded image by URL or verify the upload.
Dependencies
- Requires an API key credential that provides access to Steemit with the necessary permissions, including the posting private key.
- Uses the Steemit public API endpoint (
https://api.steemit.com) for blockchain interactions. - Uploads images via the Steemit image hosting API at
https://steemitimages.com/api/upload. - Node.js built-in crypto module is used to create a SHA256 hash and sign it with the user's private key.
- The
undiciHTTP client library is used to perform the POST request to upload the image.
Troubleshooting
Error: Failed to upload image: [status text]
This indicates the HTTP request to the image upload API failed. Check network connectivity, API availability, and ensure the provided binary data is valid image data.Error related to missing or invalid binary property
Ensure the specified binary property name exists in the input item and contains valid base64-encoded image data.Authentication errors
Verify that the API credentials include a valid posting private key and account name with permission to upload images.Signature generation issues
If the signing process fails, confirm the private key format and that the cryptographic operations are supported in the environment.