Class GetTransactionProof
- java.lang.Object
-
- com.algorand.algosdk.v2.client.common.Query
-
- com.algorand.algosdk.v2.client.algod.GetTransactionProof
-
public class GetTransactionProof extends Query
Get a proof for a transaction in a block. /v2/blocks/{round}/transactions/{txid}/proof
-
-
Constructor Summary
Constructors Constructor Description GetTransactionProof(Client client, Long round, String txid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<TransactionProof>execute()Execute the query.Response<TransactionProof>execute(String[] headers, 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 QueryDatagetRequestString()GetTransactionProofhashtype(Enums.Hashtype hashtype)The type of hash function used to create the proof, must be one of: sha512_256 sha256-
Methods inherited from class com.algorand.algosdk.v2.client.common.Query
addPathSegment, addQuery, addToBody, addToBody, baseExecute, baseExecute, getRequestMethod, getRequestUrl, getRequestUrl, resetPathSegment
-
-
-
-
Method Detail
-
hashtype
public GetTransactionProof hashtype(Enums.Hashtype hashtype)
The type of hash function used to create the proof, must be one of: sha512_256 sha256
-
execute
public Response<TransactionProof> execute() throws Exception
Execute the query.
-
execute
public Response<TransactionProof> execute(String[] headers, String[] values) throws Exception
Execute the query with custom headers, there must be an equal number of keys and values or else an error will be generated.
-
getRequestString
protected QueryData getRequestString()
- Specified by:
getRequestStringin classQuery
-
-