Add additional fields to the SignRawTransaction RPC result.
This mimics Bitcoin Core commit 8ac2a4e1788426329b842eea7121b8eac7875c76
This commit is contained in:
parent
a40058cd0e
commit
1555124c85
1 changed files with 13 additions and 2 deletions
|
@ -115,11 +115,22 @@ type ListUnspentResult struct {
|
||||||
Confirmations int64 `json:"confirmations"`
|
Confirmations int64 `json:"confirmations"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SignRawTransactionError models the data that contains script verification
|
||||||
|
// errors from the signrawtransaction request.
|
||||||
|
type SignRawTransactionError struct {
|
||||||
|
TxID string `json:"txid"`
|
||||||
|
Vout uint32 `json:"vout"`
|
||||||
|
ScriptSig string `json:"hex"`
|
||||||
|
Sequence uint32 `json:"sequence"`
|
||||||
|
Error string `json:"error"`
|
||||||
|
}
|
||||||
|
|
||||||
// SignRawTransactionResult models the data from the signrawtransaction
|
// SignRawTransactionResult models the data from the signrawtransaction
|
||||||
// command.
|
// command.
|
||||||
type SignRawTransactionResult struct {
|
type SignRawTransactionResult struct {
|
||||||
Hex string `json:"hex"`
|
Hex string `json:"hex"`
|
||||||
Complete bool `json:"complete"`
|
Complete bool `json:"complete"`
|
||||||
|
Errors []SignRawTransactionResult `json:"errors,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidateAddressWalletResult models the data returned by the wallet server
|
// ValidateAddressWalletResult models the data returned by the wallet server
|
||||||
|
|
Loading…
Add table
Reference in a new issue