public class TransactionUtils extends Object
Constructor and Description |
---|
TransactionUtils() |
Modifier and Type | Method and Description |
---|---|
static TronTransaction |
processTransaction(GrpcClient client,
Protocol.Transaction transaction,
TronPrivateKey privateKey)
Processes and broadcast a transaction.
|
static TronTransaction |
processTransactionExtention(GrpcClient client,
GrpcAPI.TransactionExtention transactionExtention,
TronPrivateKey privateKey)
Processes and broadcast a transaction.
|
static Protocol.Transaction |
signTransaction(Protocol.Transaction transaction,
TronPrivateKey privateKey)
Signs a transaction.
|
public static TronTransaction processTransactionExtention(GrpcClient client, GrpcAPI.TransactionExtention transactionExtention, TronPrivateKey privateKey) throws TransactionException
client
- The GRPC client.transactionExtention
- The transaction extension.privateKey
- The private key to sign the transaction.TransactionException
- If the transaction fails.public static TronTransaction processTransaction(GrpcClient client, Protocol.Transaction transaction, TronPrivateKey privateKey) throws TransactionException
client
- The GRPC client.transaction
- The transaction.privateKey
- The private key to sign the transaction.TransactionException
- If the transaction fails.public static Protocol.Transaction signTransaction(Protocol.Transaction transaction, TronPrivateKey privateKey)
transaction
- The transactionprivateKey
- The private key.Copyright © 2020. All rights reserved.