Skip to main content

API Reference

Actions

ZG_UPLOAD

Uploads files to the 0G network with automatic handling of file processing and network communication.

Aliases

The ZG_UPLOAD action can be triggered using any of these aliases:
  • UPLOAD_FILE_TO_ZG
  • STORE_FILE_ON_ZG
  • SAVE_FILE_TO_ZG
  • UPLOAD_TO_ZERO_GRAVITY
  • STORE_ON_ZERO_GRAVITY
  • SHARE_FILE_ON_ZG
  • PUBLISH_FILE_TO_ZG

Input Content

Parameters

Response

Response Fields

Example Usage

Plugin Configuration

Plugin Registration

Environment Variables

The plugin requires these environment variables:

Error Codes

File Access Errors

Network Errors

Configuration Errors

Type Definitions

Core Types

Action Definition

Integration Examples

Basic Agent Setup

Custom Action Handler

Troubleshooting

For common issues and solutions, see the Troubleshooting Guide.