0.1.10 • Published 3 months ago

@fleet-sdk/babel-fees-plugin v0.1.10

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@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();
0.1.10

3 months ago

0.1.8

6 months ago

0.1.7

8 months ago

0.1.9

6 months ago

0.1.4

9 months ago

0.1.3

10 months ago

0.1.6

9 months ago

0.1.5

9 months ago

0.1.0-alpha.32

11 months ago

0.1.0-alpha.31

11 months ago

0.1.0

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0-alpha.30

11 months ago

0.1.0-alpha.23

1 year ago

0.1.0-alpha.22

1 year ago

0.1.0-alpha.25

1 year ago

0.1.0-alpha.24

1 year ago

0.1.0-alpha.27

1 year ago

0.1.0-alpha.26

1 year ago

0.1.0-alpha.29

12 months ago

0.1.0-alpha.28

12 months ago

0.1.0-alpha.20

1 year ago

0.1.0-alpha.19

1 year ago

0.1.0-alpha.18

1 year ago

0.1.0-alpha.17

1 year ago

0.1.0-alpha.16

1 year ago

0.1.0-alpha.15

1 year ago