algorand / algorand/go-algorand

goal should make extra information provided in some API requests available

Đang mở
#5,908 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
Enhancement
Ngôn ngữ chính
Go
Star
1.4k
Fork
537
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
18

Mô tả

## Status

While some APIs (at least `transactions/pending`, `applications/{application-id}/boxes`, and `account/{address}`) can return extra information in the `.Data` field of the REST request. Today, `goal` only prints the message, not the extra data.

## Expected

There should be a way to get this information. Possibly in human readable form (especially for the box and account endpoints, for which the information is small and bounded), and possibly in a program consumable form (perhaps spit out the JSON).

I think we ought to maintain the stance that this information is not (yet) guaranteed to maintain that form. We don't really even have a semvar regime for `goal`.

## Solution

Maybe this just means a `-v` (verbose) flag for boxes and accounts that prints the 2 or 3 fields as human readable message.

For the `pending endpoint`, maybe `-v` is also the answer, but it prints JSON (so we don't have to come up with human sentences for the verbose output). Or maybe it's a different flag, since JSON feels different?

## Urgency

My opinion is that the `pending` endpoint change is much more valuable, so it has some priority. The other endpoints are quite "static" in their use of `Data`, they report limits that the user is running up against.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.