Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an interface to query the contract data of the local node. #295

Open
VictorECDSA opened this issue May 28, 2020 · 1 comment
Open

Add an interface to query the contract data of the local node. #295

VictorECDSA opened this issue May 28, 2020 · 1 comment
Labels
enhancement An enhancement to existing implementation

Comments

@VictorECDSA
Copy link

At present, there is only one call interface for contract operation. For the query of contract data, even if the contract status is not modified, the query transaction needs to be sent to the blockchain network and gas is consumed.Does the project side need to add an interface to query the local node contract status data like ethereum, instead of sending the query transaction to the blockchain network?

@VictorECDSA VictorECDSA added the enhancement An enhancement to existing implementation label May 28, 2020
@honeycrypto
Copy link
Contributor

@fenghaoming there are /local-call and /local-create interfaces in API v2.4.0
You need to enable API server in config/semux.properties and then you can find specs in swagger explorer at this address:
http://127.0.0.1:5171/index.html#/Tool/localCall

local-call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement to existing implementation
Projects
None yet
Development

No branches or pull requests

2 participants