transfers.create
Initiate financial transfers between accounts by specifying amount, currency, source, and destination details to move funds securely.
Instructions
Create a Ryft transfer.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| currency | Yes | ||
| source | No | ||
| destination | No | ||
| reason | No | ||
| metadata | No |
Implementation Reference
- src/tools/transfers.ts:27-32 (handler)The handler for 'transfers.create' uses the RyftHttpClient to POST to the /transfers endpoint.
registerTool( 'transfers.create', 'Create a Ryft transfer.', createTransferSchema.shape, async (args) => client.post('/transfers', createTransferSchema.parse(args)), ); - src/tools/transfers.ts:11-18 (schema)The schema definition for input arguments of 'transfers.create'.
const createTransferSchema = z.object({ amount: z.number().int().positive(), currency: z.string().length(3), source: transferEndpointSchema.optional(), destination: transferEndpointSchema.optional(), reason: z.string().min(1).optional(), metadata: metadataSchema.optional(), }); - src/tools/transfers.ts:26-26 (registration)Registration function for transfer-related tools.
export function registerTransferTools(registerTool: ToolRegistrar, client: RyftHttpClient) {