Skip to main content
Version: 1.0.1

Rain Protocol

Build Your Economy


Rain Stack

Usage Notes

Always use the SDK when you are making calls which make changes to the state of the blockchain (e.g. redeeming your funds from an Escrow, or making a purchase in a Sale). For querying read only data, in nearly all cases it's better to use the [Subgraph][sugraph] (Polygon Subgraph), especially as this can prevent cross-block inconsistencies when fetching multiple types of data.

How to Install and Use the SDK

Simply run (if using npm): npm install rain-sdk

Import In Javascript as follows; import * as rainSDK from 'rain-sdk'

The sdk can then be used as follows rainSDK.Sale.deploy(..

See our Guides for examples of how to use.

Community

Join our community here: Telegram