New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dojoengine/create-burner

Package Overview
Dependencies
Maintainers
1
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dojoengine/create-burner

dojo: Useful hooks and functions to create a Starknet burner wallet

  • 1.0.13
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
268
decreased by-44.17%
Maintainers
1
Weekly downloads
 
Created
Source
Dojo logo
Dojo logo

discord Telegram Chat

Note: Starknet Burner Accounts are currently in pre-alpha. Expect breaking changes frequently.

Warning: You should provide your users with warning explaning that these Accounts are not secure and should not be used for storing large amounts of funds. The keypair is stored in local storage and can be exploited by malicious actors.

Create Starknet Burner Accounts

Easily manage, create, and interact with burner accounts on Starknets using this library.

Features:

  • Initialize and manage burner accounts.
  • Abstracts away intricacies related to creating, fetching, and setting active burner accounts.
  • Easily integrate with React apps using the provided hook.
  • Vanilla JS support.

Table of Contents

Installation

You can install create-burner using yarn, pnpm, or npm:

yarn add @dojoengine/create-burner starknet

In the wild:

Usage

With React

After installation, you can easily integrate it into your React app:

import { useBurner } from "@dojoengine/create-burner";

const YourComponent = () => {
    const { get, list, select, create, account } = useBurner(options);

    // Rest of your component
};

Vanilla JavaScript

For non-React apps, initialize and manage burners using the BurnerManager class:

import { BurnerManager } from "@dojoengine/create-burner";

const manager = new BurnerManager(options);
manager.init();
const activeAccount = manager.getActiveAccount();

API

  • useBurner: A React hook that provides functionalities like creating burners, selecting them, and more.

    • get(address: string): Get a burner account based on its address.
    • list(): List all burners.
    • select(address: string): Set a burner as the active account.
    • create(): Create a new burner.
    • account: The active burner account.
    • isDeploying: A boolean that indicates whether a burner is being deployed.
    • listConnectors(): List all available connectors that can be used with Starknet React.
  • BurnerManager: A class for vanilla JS that offers methods to manage burner accounts.

    • init(): Initializes the manager.
    • getActiveAccount(): Retrieves the active burner account.
    • get(address: string): Get a burner account based on its address.
    • list(): List all burners.
    • select(address: string): Set a burner as the active account.
    • create(): Create a new burner.
    • account: The active burner account.
    • isDeploying: A boolean that indicates whether a burner is being deployed.

Contribute

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/my-new-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin feature/my-new-feature).
  5. Open a pull request.

License

This project is licensed under the MIT License.

FAQs

Package last updated on 28 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc