Class Uri

  • java.lang.Object

    • io.keychain.core.Uri

public class Uri

Uri

Uri is a link to a location on a blockchain with the following form depending on whether the context is clear:

  1. <protocol>:<genesis block hash in hex>:<transaction hash>:<output index>`,

  2. <protocol>:<transaction hash>:<output index>`, or

  3. <transaction hash>:<output index>`

A blockchain URI is usually used during the pairing process.

Method Summary

Return Type Method and Description

java.lang.String

getTxHash()

Get the blockchain transaction hash

int

getOutputIndex()

Get the transaction output index

Methods inherited from class java.lang.Object

getClass, notify, notifyAll, wait