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
  • gripApp
  • bootstrap
  • shutdown
  1. API Reference

Bootstrap

PreviousAPI ReferenceNextContracts

Last updated 3 years ago

gripApp

gripApp(Config | string, AccountProviderGetter, () => void): Promise<void>

Arguments

  • {}: Configuration object or the REST URL of the node you want to connect to.

  • {}: An account provider getter.

  • {Function}: A runApp function.

Returns

Nothing.

Description

Grips an application by providing the configuration

bootstrap

bootstrap(): Promise<void>

Arguments

None.

Returns

Nothing.

Description

Bootstraps a gripped application by enabling the AccountProvider and waiting for an address to be available. At this point, the application is now bootstrapped meaning that the AccountProvider will self-bootstrap after page reloads.

shutdown

shutdown(): void

Arguments

None.

Returns

Nothing.

Description

Return the application to a gripped state, therefore, the AccountProvider won't self-bootstrap after page reloads.

🔀
Config
AccountProviderGetter