New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@fleet-sdk/babel-fees-plugin

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fleet-sdk/babel-fees-plugin

Babel Fees plugin for Fleet SDK.

latest
Source
npmnpm
Version
0.1.26
Version published
Maintainers
1
Created
Source

@fleet-sdk/babel-fees-plugin License npm

Fleet SDK plugin and utility functions for Babel Fees.

Installation

npm install @fleet-sdk/babel-fees-plugin

Usage Example

const tx = new TransactionBuilder(height)
  .from(inputs)
  // Use extend method to extend the transaction builder with plugins.
  .extend(
    // In this case, BabelSwapPlugin will swap the specified token
    // amount for ERG, based on token price, and make it available.
    // for use in the transaction.
    BabelSwapPlugin(babelBox, {
      tokenId: "03faf2cb329f2e90d6d23b58d91bbb6c046aa143261cc21f52fbe2824bfcbf04",
      amount: "2" // amount of token units you want to swap for ERG
    })
  )
  // BabelSwapPlugin will make swapped ERG available for use in any
  // point of the transaction, in this example, we are using it to
  // pay the mining fee and sending the excess to the change address.
  .payMinFee()
  .sendChangeTo(changeAddress)
  .build();

Keywords

ergo

FAQs

Package last updated on 26 Jul 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