package Ġorg . kin . sdk . base . network . api . ag ora Ċ Ċ import Ġio . grpc . Managed Channel Ċ import Ġorg . kin . ag ora . gen . transaction . v 3 . Transaction Grpc Ċ import Ġorg . kin . sdk . base . models . Qu ark Amount Ċ import Ġorg . kin . sdk . base . network . api . Kin Transaction Api Ċ import Ġorg . kin . sdk . base . network . api . Kin Transaction Api . Get Min Fee For Transaction Response Ċ import Ġorg . kin . sdk . base . network . api . Kin Transaction Api . Get Transaction History Request Ċ import Ġorg . kin . sdk . base . network . api . Kin Transaction Api . Get Transaction History Response Ċ import Ġorg . kin . sdk . base . network . api . Kin Transaction Api . Get Transaction Request Ċ import Ġorg . kin . sdk . base . network . api . Kin Transaction Api . Get Transaction Response Ċ import Ġorg . kin . sdk . base . network . api . Kin Transaction Api . Submit Transaction Request Ċ import Ġorg . kin . sdk . base . network . api . Kin Transaction Api . Submit Transaction Response Ċ import Ġorg . kin . sdk . base . network . api . Kin Transaction Wh itel isting Api Ċ import Ġorg . kin . sdk . base . network . api . Kin Transaction Wh itel isting Api . Whitelist Transaction Response Ċ import Ġorg . kin . sdk . base . stell ar . models . Network Environment Ċ Ċ class ĠA gor a Kin Transactions Api ( ĊĠĠĠ Ġmanaged Channel : ĠManaged Channel , ĊĠĠĠ Ġprivate Ġval Ġnetwork Environment : ĠNetwork Environment Ċ ) Ġ: ĠGr pc Api ( managed Channel ), ĠKin Transaction Api , ĊĠĠĠ ĠKin Transaction Wh itel isting Api Ġ{ ĊĠĠĠ Ġoverride Ġval Ġis Wh itel isting Available : ĠBoolean Ġ= Ġtrue ĊĊĠĠĠ Ġprivate Ġval Ġtransaction Api Ġ= ĠTransaction Grpc . new Stub ( managed Channel ) ĊĊĠĠĠ Ġoverride Ġfun Ġget Transaction History ( ĊĠĠĠĠĠĠĠ Ġrequest : ĠGet Transaction History Request , ĊĠĠĠĠĠĠĠ Ġon Completed : Ġ( Get Transaction History Response ) Ġ-> ĠUnit ĊĠĠĠ Ġ) Ġ= Ġtransaction Api :: get History ĊĠĠĠĠĠĠĠ Ġ. call As Promise d Callback ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrequest . to Grpc Request (), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġon Completed . getTransaction History Response ( network Environment ) ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠ Ġoverride Ġfun Ġget Transaction ( ĊĠĠĠĠĠĠĠ Ġrequest : ĠGet Transaction Request , ĊĠĠĠĠĠĠĠ Ġon Completed : Ġ( Get Transaction Response ) Ġ-> ĠUnit ĊĠĠĠ Ġ) Ġ= Ġtransaction Api :: getTransaction ĊĠĠĠĠĠĠĠ Ġ. call As Promise d Callback ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrequest . to Grpc Request (), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġon Completed . getTransaction Response ( network Environment ) ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠ Ġoverride Ġfun Ġget Transaction Min Fee ( on Completed : Ġ( Get Min Fee For Transaction Response ) Ġ-> ĠUnit ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon Completed ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠGet Min Fee For Transaction Response ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠGet Min Fee For Transaction Response . Result . Ok , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠQu ark Amount ( 1 0 0 ) Ġ// TODO : Ġwe Ġneed Ġan Ġrpc Ġto Ġfetch Ġthis Ġfrom ĠA gor a ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġwhitelist Transaction ( ĊĠĠĠĠĠĠĠ Ġrequest : ĠKin Transaction Wh itel isting Api . Whitelist Transaction Request , ĊĠĠĠĠĠĠĠ Ġon Completed : Ġ( Whitelist Transaction Response ) Ġ-> ĠUnit ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠĠĠ Ġ/** ĊĠĠĠĠĠĠĠĠ Ġ* ĠEffect ively Ġa Ġno - op , Ġjust Ġpassing Ġthrough Ġsince Ġwhite - listing Ġa Ġtransaction ĊĠĠĠĠĠĠĠĠ Ġ* Ġis Ġdone Ġin ĠA gor a 's Ġsubmit Transaction Ġoperation . ĊĠĠĠĠĠĠĠĠ Ġ*/ ĊĠĠĠĠĠĠĠ Ġon Completed ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠWh itelist Transaction Response ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠWh itelist Transaction Response . Result . Ok , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġrequest . base 6 4 Encoded Transaction Envelope Bytes ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġsubmit Transaction ( ĊĠĠĠĠĠĠĠ Ġrequest : ĠSubmit Transaction Request , ĊĠĠĠĠĠĠĠ Ġon Completed : Ġ( Submit Transaction Response ) Ġ-> ĠUnit ĊĠĠĠ Ġ) Ġ= Ġtransaction Api :: submit Transaction ĊĠĠĠĠĠĠĠ Ġ. call As Promise d Callback ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrequest . to Grpc Request (), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġon Completed . submit Transaction Response ( request , Ġnetwork Environment ) ĊĠĠĠĠĠĠĠ Ġ) Ċ } Ċ