MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / bpGetTransactionByHash

Function bpGetTransactionByHash

api/transactions.go:90–96  ·  view source on GitHub ↗
(ctx context.Context, conn *jsonrpc2.Conn, req *jsonrpc2.Request)

Source from the content-addressed store, hash-verified

88}
89
90func bpGetTransactionByHash(ctx context.Context, conn *jsonrpc2.Conn, req *jsonrpc2.Request) (
91 result interface{}, err error,
92) {
93 params := ctx.Value("_params").(*bpGetTransactionByHashParams)
94 model := models.TransactionsModel{}
95 return model.GetTransactionByHash(params.Hash)
96}

Callers

nothing calls this directly

Calls 2

GetTransactionByHashMethod · 0.95
ValueMethod · 0.80

Tested by

no test coverage detected