semux-core icon indicating copy to clipboard operation
semux-core copied to clipboard

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

Open VictorECDSA opened this issue 4 years ago • 1 comments

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 avatar May 28 '20 08:05 VictorECDSA

@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

honeycrypto avatar May 28 '20 10:05 honeycrypto