Griptape.js
  • What is Griptape.js?
  • 🛹Getting Started
  • 🚀Bootstrapping Your App
  • 🗞️Interacting with Contracts
    • Contract Definitions
      • More on Definitions
    • Creating Contract Clients
    • Built-In Definitions
    • Extending Contract Definitions
    • Contract Registry
    • Instantiating Contracts
  • 🔑Using Viewing Keys and Permits
    • Using the viewing key manager
    • Using Keplr with Griptape
    • Managing Permits
  • 🕢Handling Events
  • ⚒️Using Utilities
  • 🔀API Reference
    • Bootstrap
    • Contracts
    • Viewing Keys
    • Permits
    • Events
    • Utilities
  • 🐝Tricks Tutorials
    • React Tutorials
      • Hello, Griptape
      • Hello, Contracts
      • Hello, Events
      • Hello, Viewing Keys
      • Hello, Permits
      • Hello, Transactions
      • Hello, Mint
    • Vue Tutorials
      • Hello, Griptape
      • Hello, Contracts
      • Hello, Events
      • Hello, Viewing Keys
      • Hello, Permits
      • Hello, Transactions
      • Hello, Mint
  • 💾Hackathon
    • Welcome Packet
    • Getting Set Up
    • Glossary
Powered by GitBook
On this page
  • Introduction
  • Contract Definitions
  • Client Contracts

Interacting with Contracts

Learn about how to set up your application so you can start interacting with contracts.

Introduction

Contract interaction is at the core of Griptape. In order to interact with contracts we provide a couple of APIs that will make your journey way too easier. There are two major things that you need to understand: Contract Definitions and Client Contract Creation.

Contract Definitions

Contract definitions are the "blueprints" for the deployed contract you want to interact with; it not only defines what queries and messages you can send to the contract, but also, help you deal with common needs like passing an address, viewing keys, permits and fees.

Client Contracts

Client contracts are objects that are created based on contract definitions. Think of them as the object responsable to send the queries and messages defined on the contract definition. It is a plain-old JavaScript object, but it is all connected with you Account Provider and the Viewing Key Manager.

PreviousBootstrapping Your AppNextContract Definitions

Last updated 3 years ago

🗞️