Griptape.js
Search…
Bootstrap

gripApp

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

Arguments

  • {Config}: Configuration object or the REST URL of the node you want to connect to.
  • {AccountProviderGetter}: 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.
Copy link
On this page
gripApp
bootstrap
shutdown