Build Your Economy
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 * as rainSDK from 'rain-sdk'
The sdk can then be used as follows
See our Guides for examples of how to use.
Join our community here: Telegram