Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 499 Bytes

File metadata and controls

15 lines (9 loc) · 499 Bytes

SDK

Overview

The Premia SDK is available in Typescript and is the codebase can be used to query data stored in smart contracts or to modify data on-chain by signing and executing transactions on-chain.

The SDK is separated into three main groups, for simple understanding:

  • Types & Entities

  • Queries (Reads)

    Queries only read state from contracts on-chain or subgraphs, never update state.

  • Mutations (Writes)

    Mutations update the state of a contract on-chain.