Skip to content

Commit

Permalink
fix: add client route for chain/getTransaction (#3663)
Browse files Browse the repository at this point in the history
  • Loading branch information
holahula authored Mar 18, 2023
1 parent efc65f2 commit 6bbd5e2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ironfish/src/rpc/clients/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ import {
GetPeersResponse,
GetPublicKeyRequest,
GetPublicKeyResponse,
GetTransactionRequest,
GetTransactionResponse,
GetTransactionStreamRequest,
GetTransactionStreamResponse,
GetWorkersStatusRequest,
Expand Down Expand Up @@ -528,6 +530,13 @@ export abstract class RpcClient {
)
}

getTransaction(params: GetTransactionRequest): RpcResponse<void, GetTransactionResponse> {
return this.request<void, GetTransactionResponse>(
`${ApiNamespace.chain}/getTransaction`,
params,
)
}

async getConfig(
params: GetConfigRequest = undefined,
): Promise<RpcResponseEnded<GetConfigResponse>> {
Expand Down

1 comment on commit 6bbd5e2

@hairtail
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't matter if we never call this route in cli. The route will be registered in router even without this pr.

Please sign in to comment.