Treasury

Sign rebalance step

Changed on

Submit a signature for a managed wallet rebalance step, including wallet-to-wallet and wallet-to-provider-ledger routes. Webhook updates follow signature validation and onchain submission.

post/v1/treasury/rebalances/{id}/steps/{stepId}/sign

Request

Path parameters

idstring required

Rebalance ID

stepIdstring required

Rebalance step ID

Request body

signaturestring required

Base64-encoded JSON envelope { body, stamp } where body is the JSON-encoded Turnkey ACTIVITY_TYPE_SIGN_TRANSACTION_V2 activity and stamp is the X-Stamp header value produced by stamping that body. Tesser forwards the envelope to Turnkey to obtain the signed transaction.

Response

Signature accepted. In turn: the step is confirmed with its broadcast transaction_hash; finality follows asynchronously. Queued behind an earlier nonce from the same wallet: the step is signed with transaction_hash null until it broadcasts.

Example response

{
  "data": {
    "id": "e4a1b7c3-9f2d-4e56-a8b0-3c5d1e7f9a2b",
    "workspace_id": "b53f6690-3242-4942-9907-885779632832",
    "direction": "rebalance",
    "steps": [],
    "created_at": "2024-03-01T10:00:00.000Z",
    "updated_at": "2024-03-01T10:00:00.000Z",
    "expires_at": "2024-03-04T10:00:00.000Z"
  }
}

Changes

    • breaking

      the response property ///// became nullable for the status

    • breaking

      the ///// response's property format changed from date-time to no format for status

    • breaking

      the ///// response's property format changed from date-time to no format for status

    • breaking

      the //////// response's property type changed from string to object for status

    • breaking

      the ///// response's property format changed from date-time to no format for status

    • breaking

      removed the required property ///// from the response with the status

    • breaking

      removed the required property ///// from the response with the status

    • breaking

      removed the required property ///// from the response with the status

    • breaking

      removed the required property /////// from the response with the status

    • breaking

      removed the required property /////// from the response with the status

    • breaking

      removed the required property /////// from the response with the status

    • breaking

      removed the required property /////// from the response with the status

    • breaking

      removed the required property /////// from the response with the status

    • breaking

      removed the required property ///// from the response with the status

    • breaking

      removed the required property ///// from the response with the status

    • breaking

      removed the required property ///// from the response with the status

    • warning

      removed the optional property ///// from the response with the status

    • warning

      removed the optional property /////// from the response with the status

    • warning

      removed the optional property /////// from the response with the status

    • warning

      removed the optional property /////// from the response with the status

    • warning

      removed the optional property /////// from the response with the status

    • warning

      removed the optional property /////// from the response with the status

    • warning

      removed the optional property ///// from the response with the status

    • warning

      added the new kraken enum value to the /////// response property for the response status

    • warning

      added the new openfx enum value to the /////// response property for the response status

    • warning

      added the new zuba enum value to the /////// response property for the response status

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      the response property ///// became required for the status

    • info

      the response property ///// became required for the status

    • info

      the response property ///// became required for the status

    • info

      the response property /////// became required for the status

    • info

      removed the alfred enum value from the /////// response property for the response status

    • info

      removed the finalized enum value from the /////// response property for the response status

    • info

      added the required property ///// to the response with the status

    • info

      added the required property ///// to the response with the status

    • info

      added the required property ///// to the response with the status

    • info

      added the required property /////// to the response with the status

    • info

      added the required property /////// to the response with the status

    • info

      added the required property /////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ///////// to the response with the status