0.84.0 • Published 14 hours ago

@fuel-ts/account v0.84.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
14 hours ago

@fuel-ts/wallet

@fuel-ts/wallet 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

See Fuels-ts Documentation

Usage

Installation

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

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 { BaseAssetId } from "fuels";
import { seedTestWallet, generateTestWallet } from "@account/test-utils";

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

// seeding
const wallet = Wallet.fromPrivateKey("0x...", provider);
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/wallet, please see the main fuels-ts monorepo.

Changelog

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

License

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

0.84.0

6 days ago

0.82.0

15 days ago

0.83.0

13 days ago

0.81.0

22 days ago

0.80.0

24 days ago

0.76.9

1 month ago

0.76.11

1 month ago

0.76.10

1 month ago

0.76.12

1 month ago

0.76.8

1 month ago

0.76.7

1 month ago

0.79.0

1 month ago

0.76.5

1 month ago

0.76.4

1 month ago

0.78.0

2 months ago

0.76.3

2 months ago

0.76.2

2 months ago

0.76.1

2 months ago

0.77.0

2 months ago

0.76.0

2 months ago

0.75.0

2 months ago

0.74.0

3 months ago