-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ack
API call improvement
#679
Comments
I would probably change param from (I haven't dig into code deeply, so it probably won't work, but we may discuss it and explore) |
Summarizing what I found in discord:
|
Slightly different proposal: |
Additionally, I noticed, that deprecated
So, in my opinion, new |
We have sent a PR for addition of |
A proposal for refactoring of
|
I would like to chime in that adding the chainid was intended for future support of this call if lite nodes are introduced. If a node is only tracking certain chains, then it can only respond to an ack call for certain chains. If you don't specify the chain, the node has no way of knowing if it is missing the entry because it does not exist, or because it is not tracking it. |
@Emyrk But we still may implement shorthand That would make API call documentation clearer. When I used this API call first time, it was confusing for me, that p.1 eliminates this confusion and keeps |
According to current documentation of
ack
call (https://docs.factom.com/api#ack), it seems like you need to know chainID of the entry for get entry information.I always thought, that I need chainID of entry to get it's status via ack API call, but it turned out, that I don't need to know chainID for it.
Maybe the solution will be:
chainid
paramchainid
, then use factom.ZeroHashIn other words, set factom.ZeroHash as default
chainid
value in case user don't provide itThat shouldn't affect any existing libs & apps, but we definitely may make API simpler:
By default, this API call returns reveal transaction of entry/chain, but you have to specify the type of the transaction for factoid/entry credit txs:
No
chainid
: for reveal entry/chainchainid
:f
for factoid transactionschainid
:c
for entry credit transactions (commit entry/chain)The text was updated successfully, but these errors were encountered: