Skip to content

Commit

Permalink
added getAccounts rpc method
Browse files Browse the repository at this point in the history
  • Loading branch information
m-aboelenein committed Mar 12, 2024
1 parent b35b246 commit b99a97a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/request/types/btcMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,7 @@ export type SignPsbtResult = {
};

export type SignPsbt = MethodParamsAndResult<SignPsbtParams, SignPsbtResult>;

export type GetAccountResult = Address[] | Record<string, string> | string[];

export type GetAccounts = MethodParamsAndResult<null, GetAccountResult>;
11 changes: 9 additions & 2 deletions src/request/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { RpcSuccessResponse } from 'src/types';
import { GetAddresses, GetInfo, SendTransfer, SignMessage, SignPsbt } from './btcMethods';
import {
GetAccounts,
GetAddresses,
GetInfo,
SendTransfer,
SignMessage,
SignPsbt,
} from './btcMethods';
import {
StxCallContract,
StxDeployContract,
Expand Down Expand Up @@ -27,6 +33,7 @@ export type StxRequestMethod = keyof StxRequests;
export interface BtcRequests {
getInfo: GetInfo;
getAddresses: GetAddresses;
getAccounts: GetAccounts;
signMessage: SignMessage;
sendTransfer: SendTransfer;
signPsbt: SignPsbt;
Expand Down

0 comments on commit b99a97a

Please sign in to comment.