MCPcopy Create free account
hub / github.com/DNAProject/DNA / GetSmartContractEventInfo

Function GetSmartContractEventInfo

cmd/utils/gas.go:478–488  ·  view source on GitHub ↗
(txHash string)

Source from the content-addressed store, hash-verified

476}
477
478func GetSmartContractEventInfo(txHash string) ([]byte, error) {
479 data, ontErr := sendRpcRequest("getsmartcodeevent", []interface{}{txHash})
480 if ontErr == nil {
481 return data, nil
482 }
483 switch ontErr.ErrorCode {
484 case ERROR_INVALID_PARAMS:
485 return nil, fmt.Errorf("invalid TxHash:%s", txHash)
486 }
487 return nil, ontErr.Error
488}
489
490func GetRawTransaction(txHash string) ([]byte, error) {
491 data, ontErr := sendRpcRequest("getrawtransaction", []interface{}{txHash, 1})

Callers 1

txStatusFunction · 0.92

Calls 2

sendRpcRequestFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected