mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-22 09:46:58 +01:00
js tutorial
This commit is contained in:
parent
b894386132
commit
f436896d96
1
index.js
1
index.js
@ -109,7 +109,6 @@ export function makeCreateTransaction(asset, metadata, outputs, ...issuers) {
|
|||||||
export function makeTransferTransaction(unspentTransaction, metadata, outputs, ...fulfilledOutputs) {
|
export function makeTransferTransaction(unspentTransaction, metadata, outputs, ...fulfilledOutputs) {
|
||||||
const inputs = fulfilledOutputs.map((outputIndex) => {
|
const inputs = fulfilledOutputs.map((outputIndex) => {
|
||||||
const fulfilledOutput = unspentTransaction.outputs[outputIndex];
|
const fulfilledOutput = unspentTransaction.outputs[outputIndex];
|
||||||
console.log(unspentTransaction, fulfilledOutput)
|
|
||||||
const transactionLink = {
|
const transactionLink = {
|
||||||
'output': outputIndex,
|
'output': outputIndex,
|
||||||
'txid': unspentTransaction.id,
|
'txid': unspentTransaction.id,
|
||||||
|
Loading…
Reference in New Issue
Block a user