Skip to content

Commit

Permalink
Add wallet/setAccountHead RPC (#4951)
Browse files Browse the repository at this point in the history
  • Loading branch information
dguenther authored May 30, 2024
1 parent 64ed9a1 commit 2c0d518
Show file tree
Hide file tree
Showing 6 changed files with 1,082 additions and 55 deletions.
11 changes: 11 additions & 0 deletions ironfish/src/rpc/clients/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ import type {
RescanAccountResponse,
SendTransactionRequest,
SendTransactionResponse,
SetAccountHeadRequest,
SetAccountHeadResponse,
SetConfigRequest,
SetConfigResponse,
SetScanningRequest,
Expand Down Expand Up @@ -308,6 +310,15 @@ export abstract class RpcClient {
},
},

setAccountHead: (
params: SetAccountHeadRequest,
): Promise<RpcResponseEnded<SetAccountHeadResponse>> => {
return this.request<SetAccountHeadResponse>(
`${ApiNamespace.wallet}/setAccountHead`,
params,
).waitForEnd()
},

getAccounts: (
params: GetAccountsRequest = undefined,
): Promise<RpcResponseEnded<GetAccountsResponse>> => {
Expand Down
Loading

0 comments on commit 2c0d518

Please sign in to comment.