chainserver

command module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2025 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

ChainServer

A HTTP service wrapper for ChainMaker SDK, designed to work with Casibase without requiring CGO support.

Overview

ChainServer is a lightweight HTTP service that provides a bridge between Casibase and ChainMaker blockchain. Instead of directly integrating ChainMaker SDK (which requires CGO), this service offers HTTP endpoints to interact with ChainMaker blockchain, making it more flexible and easier to deploy.

Features

  • RESTful API interface for ChainMaker operations
  • Easy integration with Casibase
  • No CGO dependency required for client applications

Compatibility Notice

Important:
Currently, ChainServer only supports ChainMaker blockchains with TLS disabled and authtype set to permissionedWithCert. If you encounter errors when invoking transaction or query APIs, please verify that your ChainMaker server configuration meets these requirements.
Additionally, ensure that the provider configuration in your Casibase setup is consistent with your ChainMaker network settings.

For details on how to check and modify your ChainMaker chain configuration, please refer to the official documentation:

If your configuration does not meet the above requirements, the service may not function as expected.

Technical Stack

  • Go 1.22+
  • Beego Framework
  • ChainMaker SDK v2.2.0

Configuration

The server runs on port 13900 by default. You can modify the port in the configuration file.

API Endpoints

The service provides HTTP endpoints for ChainMaker operations. Detailed API documentation will be provided separately.

Building and Running

  1. Install Go 1.22 or later
  2. Clone the repository
git clone https://github.com/casibase/chainserver.git
  1. Install dependencies
go mod tidy
  1. Run the server
go run main.go

License

Apache-2.0

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package routers @APIVersion 1.70.0 @Title chainserver RESTful API @Description Swagger Docs of chainserver API @Contact admin@casibase.org @SecurityDefinition AccessToken apiKey Authorization header @Schemes https,http @ExternalDocs Find out more about chainserver @ExternalDocsUrl https://casibase.org/
Package routers @APIVersion 1.70.0 @Title chainserver RESTful API @Description Swagger Docs of chainserver API @Contact admin@casibase.org @SecurityDefinition AccessToken apiKey Authorization header @Schemes https,http @ExternalDocs Find out more about chainserver @ExternalDocsUrl https://casibase.org/

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL