@startuml
skinparam backgroundColor #F0F8FF
skinparam defaultFontColor #333333
skinparam arrowColor #666666

' Define borders for all elements
skinparam entity {
  BorderColor #666666
  BackgroundColor #DDDDDD
}

skinparam control {
  BorderColor #666666
  BackgroundColor #DDDDDD
}

skinparam participant {
  BorderColor #666666
  BackgroundColor #DDDDDD
}



participant "HTTP Client" as Client
participant "HTTP Server\n(asset/http_impl/http.go)" as HTTPServer
participant "UTXO Store" as UTXOStore

Client -> HTTPServer : GET /txmeta/:hash/json
activate HTTPServer

HTTPServer -> UTXOStore : Get(ctx, hash)
activate UTXOStore
alt UTXO Store has metadata
    UTXOStore --> HTTPServer : Transaction metadata in JSON
else UTXO Store does not have metadata
    UTXOStore --> HTTPServer : Data not found
end
deactivate UTXOStore

HTTPServer --> Client : Response (JSON metadata or error)
deactivate HTTPServer

left footer Last Modified On: %date("dd-MMM-yyyy")

@enduml
