Skip to main content

Fluid.js

Using Fluid.js on the Fluid chain

Outside of the deprecation of the treasury, market, and oracle modules, Fluid.js functionality remains relatively unchanged. There are a few additions to allow for legacy commands which are explained in the Using Fluid Classic page.

Fluid.js seeks to provide a compatible way to work with the Fluid blockchain within JavaScript runtimes, such as Node.js and the browser. Fluid.js enables the following functions:

  • Deserializing blockchain data into JavaScript objects with native data types and methods
  • Serializing objects back into a blockchain-compatible format
  • Providing access to the Terrad node API (LCD) from a JavaScript-based interface
  • Providing additional utilities, such as hash functions and key-signing algorithms