package Ġfund . cyber . api . ethereum . handlers Ċ Ċ import Ġfund . cyber . api . common . Single Repository Item RequestHandler Ċ import Ġfund . cyber . api . common . as Server Response Ċ import Ġfund . cyber . api . common . to Page able Response Ċ import Ġfund . cyber . cassandra . ethereum . repository . E thereum Block Repository Ċ import Ġfund . cyber . cassandra . ethereum . repository . Page able E thereum Block Tx Repository Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġorg . springframework . context . annotation . Dep ends On Ċ Ċ @ Configuration Ċ @ Dep ends On (" ethereum - search - repositories ") Ċ class ĠEthereum Block Handlers Configuration Ġ{ ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġe thereum Block Item Handler () Ġ= ĠSingle Repository Item RequestHandler ( ĊĠĠĠĠĠĠĠ Ġ"/ block /{ block Number }", ĊĠĠĠĠĠĠĠ ĠEthereum Block Repository :: class . java ĊĠĠĠ Ġ) Ġ{ Ġrequest , Ġrepository Ġ-> ĊĊĠĠĠĠĠĠĠ Ġval Ġblock Number Ġ= Ġrequest . path Variable (" block Number "). to Long () ĊĠĠĠĠĠĠĠ Ġval Ġblock Ġ= Ġrepository . findById ( block Number ) ĊĠĠĠĠĠĠĠ Ġblock . as Server Response () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġe thereum Block Tx es Item Handler () Ġ= ĠSingle Repository Item RequestHandler ( ĊĠĠĠĠĠĠĠ Ġ"/ block /{ block Number }/ transactions ", ĊĠĠĠĠĠĠĠ ĠPage able E thereum Block Tx Repository :: class . java ĊĠĠĠ Ġ) Ġ{ Ġrequest , Ġrepository Ġ-> ĊĊĠĠĠĠĠĠĠ Ġval Ġblock Number Ġ= Ġrequest . path Variable (" block Number "). to Long () ĊĠĠĠĠĠĠĠ Ġrequest . to Page able Response Ġ{ Ġpage able Ġ-> Ġrepository . findAll By Block Number ( block Number , Ġpage able ) Ġ} ĊĠĠĠ Ġ} Ċ Ċ } Ċ