Skip to content

Commit

Permalink
add NewCreateRawTransactionCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
dydysy committed Nov 21, 2017
1 parent f40b7d3 commit b1fec40
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,17 @@ func NewSendRawTransactionCmd(hexTx string, allowHighFees *bool) *SendRawTransac
AllowHighFees: allowHighFees,
}
}

// NewCreateRawTransactionCmd returns a new instance which can be used to issue
// a createrawtransaction JSON-RPC command.
//
// Amounts are in BTC.
func NewCreateRawTransactionCmd(inputs []TransactionInput, amounts map[string]float64,
lockTime *int64) *CreateRawTransactionCmd {

return &CreateRawTransactionCmd{
Inputs: inputs,
Amounts: amounts,
LockTime: lockTime,
}
}

0 comments on commit b1fec40

Please sign in to comment.