diff --git a/types.go b/types.go index fe55790..d42318e 100644 --- a/types.go +++ b/types.go @@ -1,10 +1,10 @@ package rpc type UnsignedTransaction struct { - fee int - networkID string - seq int - action Action + Fee int `json:"fee"` + NetworkID string `json:"network_id"` + Seq int `json:"seq"` + Action Action `json:"action"` } type AssetScheme interface{} @@ -12,8 +12,8 @@ type Asset interface{} type CommonParams interface{} type Text struct { - content string `json:"content"` - certifier string `json:"certifier"` + Content string `json:"content"` + Certifier string `json:"certifier"` } type Action interface { @@ -85,16 +85,16 @@ type Custom struct { } type Transaction struct { - blockHash string - blockNumber int - transactionIndex int - result bool - seq int - fee int - hash string - networkID string - sig string - action Action + BlockHash string `json:"blockHash"` + BlockNumber int `json:"blockNumber"` + TransactionIndex int `json:"transactionIndex"` + Result bool `json:"result"` + Seq int `json:"seq"` + Fee string `json:"fee"` + Hash string `json:"hash"` + NetworkID string `json:"networkID"` + Sig string `json:"sig"` + Action Action `json:"action"` } // TODO Handle action details type Block struct {