---
title: "Build the unsigned message for a send from a client_tss wallet"
method: POST
path: "/v1/treasury/wallets/{chain}/tss/prepare"
tags: ["Key Custody"]
---

# Build the unsigned message for a send from a client_tss wallet

`POST /v1/treasury/wallets/{chain}/tss/prepare`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/treasury/wallets/{chain}/tss/prepare`
- Auth: HTTP bearer

Runs wallet access, the sanctions screen and spend policies on the
declared destination, fetches a recent blockhash and returns the
unsigned transaction message. Sign it with `/v1/keys/{key_id}/tss/sign/*`
and submit with `…/tss/broadcast`.
It then runs the same Cedar/OPA transaction policy (action `submit`) and
`treasury_send` M-of-N consensus a server-custody treasury send runs; the
vault co-signs this send, so an org rule that would stop a server send
stops it too.

## Request body

- object
  - `to` string, required
  - `value` string, required: Major units, e.g. "0.5".
  - `memo` string
  - `approval_id` string, uuid: An approved `treasury_send` M-of-N consensus approval for this exact send (the `pending_approval_id` of an earlier 202).

## Response `200`

Unsigned message

- object
  - `key_id` string, uuid
  - `chain` string
  - `from` string
  - `to` string
  - `value_base_units` string
  - `recent_blockhash` string
  - `message` string
  - `message_digest` string

## Other responses

- `202`: The org's `treasury_send` consensus policy holds this send for M-of-N approval. Nothing is built. Once approved, call prepare again with the same transfer and `approval_id` set to `pending_approval_id`.
- `400`: Invalid request
- `401`: Authentication required or invalid
- `403`: Insufficient permissions
- `404`: Resource not found

## Changes

- **2026-10-20** `5fa0918f3b41`: 2 info
  - added the new optional request property `approval_id`
  - added the success response with the status `202`

[Operation history](https://skmtc.dev/1claw/apis/1claw-api/changes/v1/treasury/wallets/:chain/tss/prepare/post.md)

---

[API](https://skmtc.dev/1claw/apis/1claw-api.md) · [All operations](https://skmtc.dev/1claw/apis/1claw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1claw/apis/1claw-api/revisions/5fa0918f3b41?raw)
