Class GetProof
java.lang.Object
com.algorand.algosdk.v2.client.common.Query
com.algorand.algosdk.v2.client.algod.GetProof
public class GetProof extends Query
Get a Merkle proof for a transaction in a block.
/v2/blocks/{round}/transactions/{txid}/proof
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Response<ProofResponse>
execute()
Execute the query.Response<ProofResponse>
execute(java.lang.String[] headers, java.lang.String[] values)
Execute the query with custom headers, there must be an equal number of keys and values or else an error will be generated.protected QueryData
getRequestString()
GetProof
hashtype(Enums.Hashtype hashtype)
The type of hash function used to create the proof, must be one of: sha512_256 sha256Methods inherited from class com.algorand.algosdk.v2.client.common.Query
addPathSegment, addQuery, addToBody, addToBody, baseExecute, baseExecute, getRequestUrl, getRequestUrl, resetPathSegment
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
GetProof
- Parameters:
round
- The round in which the transaction appears.txid
- The transaction ID for which to generate a proof.
-
-
Method Details
-
hashtype
The type of hash function used to create the proof, must be one of: sha512_256 sha256 -
execute
Execute the query. -
execute
public Response<ProofResponse> execute(java.lang.String[] headers, java.lang.String[] values) throws java.lang.ExceptionExecute the query with custom headers, there must be an equal number of keys and values or else an error will be generated. -
getRequestString
- Specified by:
getRequestString
in classQuery
-