diff --git a/src/request/types/index.ts b/src/request/types/index.ts index 8b212fa..081e108 100644 --- a/src/request/types/index.ts +++ b/src/request/types/index.ts @@ -1,5 +1,5 @@ import type * as BtcMethods from './btcMethods'; -import { GetInscriptions } from './ordinalsMethods'; +import { GetInscriptions, SendInscriptions } from './ordinalsMethods'; import type * as RunesMethods from './runesMethods'; import type * as StxMethods from './stxMethods'; import type * as WalletMethods from './walletMethods'; @@ -44,6 +44,7 @@ export type RunesRequestMethod = keyof RunesRequests; export interface OrdinalsRequests { ord_getInscriptions: GetInscriptions; + ord_sendInscriptions: SendInscriptions; } export type OrdinalsRequestMethod = keyof OrdinalsRequests; diff --git a/src/request/types/ordinalsMethods.ts b/src/request/types/ordinalsMethods.ts index f2386ce..b2dab72 100644 --- a/src/request/types/ordinalsMethods.ts +++ b/src/request/types/ordinalsMethods.ts @@ -40,8 +40,8 @@ export type GetInscriptions = MethodParamsAndResult< v.InferOutput >; -export const sendInscriptionsMethodName = 'ord_sendInscriptions'; -export const sendInscriptionsParamsSchema = v.object({ +export const SendInscriptionsMethodName = 'ord_sendInscriptions'; +export const SendInscriptionsParamsSchema = v.object({ transfers: v.array( v.object({ address: v.string(), @@ -49,19 +49,19 @@ export const sendInscriptionsParamsSchema = v.object({ }) ), }); -export const sendInscriptionsResultSchema = v.object({ +export const SendInscriptionsResultSchema = v.object({ txid: v.string(), }); -export const sendInscriptionsSchema = v.object({ +export const SendInscriptionsSchema = v.object({ ...rpcRequestMessageSchema.entries, ...v.object({ method: v.literal(getInscriptionsMethodName), - params: sendInscriptionsParamsSchema, + params: SendInscriptionsParamsSchema, id: v.string(), }).entries, }); export type SendInscriptions = MethodParamsAndResult< - v.InferOutput, - v.InferOutput + v.InferOutput, + v.InferOutput >;