Transaction

This is the main class that interact with IOST blockchain and IOST smart contracts to send and get transactions from them.

GetTxByHash


Client client = new Client("http://13.52.105.102:30001");
Transaction r = client.GetTxByHash("FxmCKUyumipwmZNvcRX1NXaZDRWqqHzL5uy76a1zoi4E");
                

get tx by hash from blockchain

PARAMETERS

Field Type Description
hash String base58 encode txHash

Returns

Returns transaction object.

GetTxReceiptByTxHash


Client client = new Client("http://13.52.105.102:30001");                        
TxReceipt receipt = client.GetTxReceiptByTxHash("FxmCKUyumipwmZNvcRX1NXaZDRWqqHzL5uy76a1zoi4E");
                

get transaction receipt by transaction hash

PARAMETERS

Field Type Description
hash String base58 encode txHash

Returns

TxReceipt object instance.

SendTx


Client client = new Client("http://13.52.105.102:30001");  
String txHash = client.SendTx(tx);
                

send transaction to IOST blockchain

Returns

Returm Transaction Hash in String.