Skip to content

Report non-zero transaction gas in transaction results #966

@tarakby

Description

@tarakby

Issue To Be Solved

Transaction results through the rest API report a gas usage of 0 for all transactions, regardless of their computations. It would be good if measured gas can be reported so that computation efforts can be compared.

Example:
using http://localhost:8888/v1/transaction_results/3dd677e3d8fcf4e8de0d6f94b317fb87755f0ed678c9fa36efd88746cac7bdba

The results are:

{
	"block_id": "5aeb35e300de6f1d2f29acd00ca327d41ffd3d15b241a260e2647698fe27fff7",
	"collection_id": "42e3e8ca6e7caa578f262c759e326beb43ff661f7566aec9ef563453d5628638",
	"execution": "Success",
	"status": "Sealed",
	"status_code": 0,
	"error_message": "",
	"computation_used": "0",
	"events": [],
	"_links": {
		"_self": "/v1/transaction_results/3dd677e3d8fcf4e8de0d6f94b317fb87755f0ed678c9fa36efd88746cac7bdba"
	}
}

Metadata

Metadata

Assignees

Labels

FeatureA new user feature or a new package APIFeedback

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions