metaverse icon indicating copy to clipboard operation
metaverse copied to clipboard

JSON RPC format of transaction version and lock_time should be numbers

Open canguruhh opened this issue 4 years ago • 0 comments

The version and lock_time of gettx are formatted as strings but they should be numbers. This also affects the list of transactions in the getblock response.

mvs-cli gettx 2a845dfa63a7c20d40dbc4b15c3e970ef36332b367500fd89307053cb4c1a2c1
{
	"hash" : "2a845dfa63a7c20d40dbc4b15c3e970ef36332b367500fd89307053cb4c1a2c1",
	"height" : 0,
	"inputs" : 
	[
		...
	],
	"lock_time" : "0",   <-----------
	"outputs" : 
	[
		...
	],
	"version" : "0" <-----------
}

canguruhh avatar May 07 '20 05:05 canguruhh