Verifying a contribution has been flagged
To verify that a contribution has been successfully flagged and the flagger's balance has been updated accordingly, perform any of the following steps:
Check the response to submitting the contribution flag: a
200response means that every contribution of the transaction is flagged, andrewardedis the number of tokens added to the balance.Retrieve the contribution by its ID again:
httpGET /data/api/v1/contribution-management/contribution/203.0.113.9A flagged contribution is not active, so this request does not return it. If no other active contribution covers the same
id, the response is404with code60.When retrieving contributions, a flagged contribution is returned with
fraudStatusset toFlagged,flaggerset to the identifier of the flagging peer, andflagTimestampset.Retrieve the peer’s token balance:
httpGET /data/api/v1/wallet-management/balancejson5{ status: { code: integer($int32), name: 'string' }, data: { tokenId: { definitionId: 'credit#admin', accountId: 'admin@peerId' }, balance: integer($int64) } }json5{ status: { code: 0, name: 'Ok' }, data: { tokenId: { definitionId: 'credit#admin', accountId: 'admin@test' }, balance: 510 } }If a contribution has been flagged successfully, the peer’s balance is updated in accordance with the declared reward amounts.