Skip to content

nate-trojian/MetamaskAddon

Repository files navigation

MetamaskAddon

License

Addon for the Godot Engine for integrating with Metamask

Install

Download from the Godot Asset Library

https://godotengine.org/asset-library/asset/1189

You can also search for Metamask in the Godot Asset Library

From ZIP

  1. Download the latest zip here
  2. Export it into the root folder of your Godot project
  • The zip file only contains the addons directory, so it won't affect anything already in your project

From Github Source

  1. Clone the source code https://github.com/nate-trojian/MetamaskAddon.git
  2. Copy everything in the addons folder to the addons folder in your Godot project

Enabling the plugin

  1. In Godot, go to Project > Project Settings... > Plugins and find the row with the name Metamask
  2. Check the box in the Status column to Enable

Enable Plugin

Example

If you've installed the addon from Github, you will be able to run the test scene located here

All functionality in this addon has a sample implementation in this scene to show how it can be used.

Usage

After install the plugin, a Metamask instance will be available anywhere in your Godot project as an autoloaded singleton.

For more details on how you can use the Metamask instance, see the Usage Doc in the addons folder