Class RawTransaction
- java.lang.Object
-
- com.algorand.algosdk.v2.client.common.Query
-
- com.algorand.algosdk.v2.client.algod.RawTransaction
-
public class RawTransaction extends Query
Broadcasts a raw transaction or transaction group to the network. /v2/transactions
-
-
Constructor Summary
Constructors Constructor Description RawTransaction(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<PostTransactionsResponse>
execute()
Execute the query.Response<PostTransactionsResponse>
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 QueryData
getRequestString()
RawTransaction
rawtxn(byte[] rawtxn)
The byte encoded signed transaction to broadcast to network-
Methods inherited from class com.algorand.algosdk.v2.client.common.Query
addPathSegment, addQuery, addToBody, addToBody, baseExecute, baseExecute, getRequestMethod, getRequestUrl, getRequestUrl, resetPathSegment
-
-
-
-
Constructor Detail
-
RawTransaction
public RawTransaction(Client client)
-
-
Method Detail
-
rawtxn
public RawTransaction rawtxn(byte[] rawtxn)
The byte encoded signed transaction to broadcast to network
-
execute
public Response<PostTransactionsResponse> execute() throws Exception
Execute the query.
-
execute
public Response<PostTransactionsResponse> 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:
getRequestString
in classQuery
-
-