github.com/koko1123/flow-go-1@v0.29.6/engine/access/rest/request/get_transaction.go (about) 1 package request 2 3 const resultExpandable = "result" 4 5 type GetTransaction struct { 6 GetByIDRequest 7 ExpandsResult bool 8 } 9 10 func (g *GetTransaction) Build(r *Request) error { 11 err := g.GetByIDRequest.Build(r) 12 g.ExpandsResult = r.Expands(resultExpandable) 13 14 return err 15 } 16 17 type GetTransactionResult struct { 18 GetByIDRequest 19 }