Changeset View
Changeset View
Standalone View
Standalone View
cashtab/src/components/Etokens/CreateTokenForm.js
Show First 20 Lines • Show All 457 Lines • ▼ Show 20 Lines | const createPreviewedToken = async () => { | ||||
mintBatonVout: null, | mintBatonVout: null, | ||||
}; | }; | ||||
// create token with data in state fields | // create token with data in state fields | ||||
try { | try { | ||||
// Get target outputs for an SLP v1 genesis tx | // Get target outputs for an SLP v1 genesis tx | ||||
const targetOutputs = getSlpGenesisTargetOutput( | const targetOutputs = getSlpGenesisTargetOutput( | ||||
configObj, | configObj, | ||||
wallet.paths.find(pathInfo => pathInfo.path === 1899).address, | wallet.paths.get(1899).address, | ||||
); | ); | ||||
const { response } = await sendXec( | const { response } = await sendXec( | ||||
chronik, | chronik, | ||||
wallet, | wallet, | ||||
targetOutputs, | targetOutputs, | ||||
settings.minFeeSends && | settings.minFeeSends && | ||||
hasEnoughToken( | hasEnoughToken( | ||||
tokens, | tokens, | ||||
▲ Show 20 Lines • Show All 339 Lines • Show Last 20 Lines |