@@ -140,7 +140,7 @@ var getServerState = xrpRequest{
140140 Method : "server_info" ,
141141}
142142
143- func (c xrpClient ) GetResponse (ctx context.Context , request xrpRequest ) ([]byte , error ) {
143+ func (c xrpClient ) getResponse (ctx context.Context , request xrpRequest ) ([]byte , error ) {
144144 getReq , err := json .Marshal (request )
145145 if err != nil {
146146 return nil , err
@@ -179,13 +179,13 @@ func (c xrpClient) GetResponse(ctx context.Context, request xrpRequest) ([]byte,
179179 return resBody , nil
180180}
181181
182- func (c xrpClient ) GetLedgerResponse (ctx context.Context , params ledgerParams ) (* ledgerResponse , error ) {
182+ func (c xrpClient ) getLedgerResponse (ctx context.Context , params ledgerParams ) (* ledgerResponse , error ) {
183183 request := xrpRequest {
184184 Method : "ledger" ,
185185 Params : []any {params },
186186 }
187187
188- resBody , err := c .GetResponse (ctx , request )
188+ resBody , err := c .getResponse (ctx , request )
189189 if err != nil {
190190 return nil , err
191191 }
@@ -206,7 +206,7 @@ func (c xrpClient) GetLedgerResponse(ctx context.Context, params ledgerParams) (
206206}
207207
208208func (c xrpClient ) GetLatestBlockInfo (ctx context.Context ) (* indexer.BlockInfo , error ) {
209- respStruct , err := c .GetLedgerResponse (ctx , getLatestParams )
209+ respStruct , err := c .getLedgerResponse (ctx , getLatestParams )
210210 if err != nil {
211211 return nil , err
212212 }
@@ -224,7 +224,7 @@ func (c xrpClient) GetBlockTimestamp(ctx context.Context, blockNum uint64) (uint
224224 Expand : false ,
225225 OwnerFunds : false ,
226226 }
227- respStruct , err := c .GetLedgerResponse (ctx , getBlockParams )
227+ respStruct , err := c .getLedgerResponse (ctx , getBlockParams )
228228 if err != nil {
229229 return 0 , err
230230 }
@@ -240,7 +240,7 @@ func (c xrpClient) GetBlockResult(ctx context.Context, blockNum uint64,
240240 Expand : true ,
241241 OwnerFunds : false ,
242242 }
243- respStruct , err := c .GetLedgerResponse (ctx , getBlockParams )
243+ respStruct , err := c .getLedgerResponse (ctx , getBlockParams )
244244 if err != nil {
245245 return nil , err
246246 }
@@ -377,7 +377,7 @@ func sourceAddressesRoot(tx xrpTransaction) (string, error) {
377377}
378378
379379func (c xrpClient ) GetServerInfo (ctx context.Context ) (string , error ) {
380- resBody , err := c .GetResponse (ctx , getServerState )
380+ resBody , err := c .getResponse (ctx , getServerState )
381381 if err != nil {
382382 return "" , err
383383 }
0 commit comments