Fluence Network

The Fluence Labs Developer Hub

Welcome to the Fluence Labs developer hub. You'll find comprehensive guides and documentation to help you start working with Fluence Labs as quickly as possible, as well as support if you get stuck. Let's jump right in!

Should you have any questions, feel free to join our Discord or Telegram!

Get Started    API Reference

HTTP protocol

API Reference

There's an HTTP API Reference here

Fluence HTTP protocol supports two main features: session-handling, and request ordering.

Given IP, request with a tx would look like this

curl '' --data $'sessionId/0\nRequestBody'
  • :25000 - default Fluence port
  • apps - prefix for appId routing
  • 2 - appId
  • tx - suffix for all txs
  • sessionId - random client-generated string, requests are ordered by that string
  • 0 - requests counter, user for ordering, should be incremented sequentially, i.e., avoid number skipping
  • '\n'- separator between sessionId/counter and the request
  • 'RequestBody' - could be anything, sent directly to your application

So, the main thing to take away is a sessionId/counter\nbody format, and remember to increment requests counter sequentially, because Fluence will wait for all omitted request numbers. This is done to preserve strict ordering, so Fluence can guarantee request processing in the strict order.

Updated 9 months ago

HTTP protocol

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.