Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
aryzing committed Jul 8, 2024
1 parent 1a36a31 commit a5593ec
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/request/types/btcMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,21 @@ export type SignPsbtResult = {
export type SignPsbt = MethodParamsAndResult<SignPsbtParams, SignPsbtResult>;

export const getAccountsMethodName = 'getAccounts';
export const getAccountsParamsSchema = getAddressesParamsSchema;
export const getAccountsParamsSchema = v.object({
/**
* The purposes for which to generate addresses. See
* {@linkcode AddressPurpose} for available purposes.
*/
purposes: v.array(v.enum(AddressPurpose)),
/**
* A message to be displayed to the user in the request prompt.
*/
message: v.optional(v.string()),
/**
* Includes wallet type (software / ledger) info in the response.
*/
includeWalletType: v.optional(v.boolean()),
});
export type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;
export const getAccountsResultSchema = v.array(addressSchema);
export type GetAccountsResult = v.InferOutput<typeof getAccountsResultSchema>;
Expand Down

0 comments on commit a5593ec

Please sign in to comment.