Add struct for DecodeScriptResult.
This commit is contained in:
parent
258e9ef4c6
commit
f78d054700
1 changed files with 8 additions and 0 deletions
|
@ -65,6 +65,14 @@ type BlockResult struct {
|
||||||
NextHash string `json:"nextblockhash"`
|
NextHash string `json:"nextblockhash"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DecodeScriptResult models the data returned from the decodescript command.
|
||||||
|
type DecodeScriptResult struct {
|
||||||
|
Asm string `json:"asm"`
|
||||||
|
ReqSigs int `json:"reqSigs,omitempty"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
Addresses []string `json:"addresses,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
// TxRawResult models the data from the getrawtransaction command.
|
// TxRawResult models the data from the getrawtransaction command.
|
||||||
type TxRawResult struct {
|
type TxRawResult struct {
|
||||||
Hex string `json:"hex"`
|
Hex string `json:"hex"`
|
||||||
|
|
Loading…
Reference in a new issue