This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Vkeywitness } from '@emurgo/cardano-serialization-lib-nodejs' | |
import CoinSelection from './coinSelection.js' | |
import {getUtxos, newTxBuilder, signTx, submitTx, bytesToString, getProtocolParameters, waitForConfirmation} from './util.js' | |
const S = await import('@emurgo/cardano-serialization-lib-nodejs/cardano_serialization_lib.js') | |
const Buffer = (await import('buffer/')).Buffer | |
// WARNING no coin selection algorithm is being used | |
// for this to be used seriously, consider using randomImprove or similar | |
// ADDITIONALLY: we make no attempt to split transactions in case this will be too large for a single tx | |
// see Nami's implementation of tx balancing to solve this. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"valueParameterInfo":[],"slotParameterDescriptions":[],"roleDescriptions":[],"contractType":"O","contractShortDescription":"","contractName":"","contractLongDescription":"","choiceInfo":[]} |