Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fuel-ts/account

Package Overview
Dependencies
Maintainers
0
Versions
1943
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fuel-ts/account

**@fuel-ts/account** is a sub-module for interacting with **Fuel**.

  • 0.90.0
  • npm
  • Socket score

Version published
Weekly downloads
3.6K
decreased by-62.76%
Maintainers
0
Weekly downloads
 
Created
Source

@fuel-ts/account

@fuel-ts/account is a sub-module for interacting with Fuel.

This module contains the class to manage a private key and signing for a standard Externally Owned Account (EOA).

Table of contents

  • Documentation
  • Usage
  • Contributing
  • Changelog
  • License

Documentation

See Fuels-ts Documentation

Usage

Installation

pnpm add @fuel-ts/account
# or
npm add @fuel-ts/account

Full SDK Installation

Alternatively, we recommend you install the complete SDK using the umbrella package:

pnpm add fuels
# or
npm add fuels

Test Utilities

These test utilities are exported to assist in testing apps using Fuels.

import { bn } from "@fuel-ts/math";
import {
  seedTestWallet,
  generateTestWallet,
} from "@fuel-ts/account/test-utils";

const provider = await Provider.create("http://127.0.0.1:4000/v1/graphql");

// seeding
const wallet = Wallet.fromPrivateKey("0x...", provider);
const baseAssetId = provider.getBaseAssetId();
seedTestWallet(wallet, [{ assetId: baseAssetId, amount: bn(100_000) }]);

// generating
const wallet = await generateTestWallet(provider, [[1_000, baseAssetId]]);

Contributing

In order to contribute to @fuel-ts/account, please see the main fuels-ts monorepo.

Changelog

The @fuel-ts/account changelog can be found at CHANGELOG.

License

The primary license for @fuel-ts/account is Apache 2.0, see LICENSE.

FAQs

Package last updated on 19 Jun 2024

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