Package org.iota.apis
Class NodeCoreApi
- java.lang.Object
-
- org.iota.apis.NodeCoreApi
-
public class NodeCoreApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NodeCoreApi(NativeApi nativeApi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockgetBlock(BlockId blockId)BlockMetadatagetBlockMetadata(BlockId blockId)byte[]getBlockRaw(BlockId blockId)booleangetHealth(java.lang.String nodeUrl)BlockgetIncludedBlock(TransactionId transactionId)MilestonePayloadgetMilestoneById(MilestoneId milestoneId)byte[]getMilestoneByIdRaw(MilestoneId milestoneId)MilestonePayloadgetMilestoneByIndex(int index)byte[]getMilestoneByIndexRaw(int index)NodeInfoResponsegetNodeInfo()java.util.Map.Entry<Output,OutputMetadata>getOutput(OutputId outputId)OutputMetadatagetOutputMetadata(OutputId outputId)Peer[]getPeers()Receipt[]getReceipts()Receipt[]getReceiptsMigratedAt(int milestoneIndex)BlockId[]getTips()TreasuryResponsegetTreasury()UtxoChangesResponsegetUtxoChangesById(MilestoneId milestoneId)UtxoChangesResponsegetUtxoChangesByIndex(int index)BlockIdpostBlock(Block block)BlockIdpostBlockRaw(byte[] blockBytes)
-
-
-
Constructor Detail
-
NodeCoreApi
public NodeCoreApi(NativeApi nativeApi) throws InitializeClientException
- Throws:
InitializeClientException
-
-
Method Detail
-
getHealth
public boolean getHealth(java.lang.String nodeUrl) throws ClientException- Throws:
ClientException
-
getNodeInfo
public NodeInfoResponse getNodeInfo() throws ClientException
- Throws:
ClientException
-
getTips
public BlockId[] getTips() throws ClientException
- Throws:
ClientException
-
postBlock
public BlockId postBlock(Block block) throws ClientException
- Throws:
ClientException
-
postBlockRaw
public BlockId postBlockRaw(byte[] blockBytes) throws ClientException
- Throws:
ClientException
-
getBlock
public Block getBlock(BlockId blockId) throws ClientException
- Throws:
ClientException
-
getBlockRaw
public byte[] getBlockRaw(BlockId blockId) throws ClientException
- Throws:
ClientException
-
getBlockMetadata
public BlockMetadata getBlockMetadata(BlockId blockId) throws ClientException
- Throws:
ClientException
-
getOutput
public java.util.Map.Entry<Output,OutputMetadata> getOutput(OutputId outputId) throws ClientException
- Throws:
ClientException
-
getOutputMetadata
public OutputMetadata getOutputMetadata(OutputId outputId) throws ClientException
- Throws:
ClientException
-
getReceiptsMigratedAt
public Receipt[] getReceiptsMigratedAt(int milestoneIndex) throws ClientException
- Throws:
ClientException
-
getReceipts
public Receipt[] getReceipts() throws ClientException
- Throws:
ClientException
-
getTreasury
public TreasuryResponse getTreasury() throws ClientException
- Throws:
ClientException
-
getIncludedBlock
public Block getIncludedBlock(TransactionId transactionId) throws ClientException
- Throws:
ClientException
-
getMilestoneById
public MilestonePayload getMilestoneById(MilestoneId milestoneId) throws ClientException
- Throws:
ClientException
-
getMilestoneByIndex
public MilestonePayload getMilestoneByIndex(int index) throws ClientException
- Throws:
ClientException
-
getMilestoneByIdRaw
public byte[] getMilestoneByIdRaw(MilestoneId milestoneId) throws ClientException
- Throws:
ClientException
-
getMilestoneByIndexRaw
public byte[] getMilestoneByIndexRaw(int index) throws ClientException- Throws:
ClientException
-
getUtxoChangesById
public UtxoChangesResponse getUtxoChangesById(MilestoneId milestoneId) throws ClientException
- Throws:
ClientException
-
getUtxoChangesByIndex
public UtxoChangesResponse getUtxoChangesByIndex(int index) throws ClientException
- Throws:
ClientException
-
getPeers
public Peer[] getPeers() throws ClientException
- Throws:
ClientException
-
-