diff --git a/jsonapi.go b/jsonapi.go index 9184835c..91ec2373 100644 --- a/jsonapi.go +++ b/jsonapi.go @@ -65,6 +65,14 @@ type BlockResult struct { 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. type TxRawResult struct { Hex string `json:"hex"`