@@ -121,6 +121,8 @@ The sender creates a transaction slate by calling the method [init_send_tx](http
121121| `num_change_outputs` | Integer | Number of change outputs (e.g., `1`). |
122122| `selection_strategy_is_use_all` | Boolean | Whether to use all available inputs (`true` or `false`). |
123123| `target_slate_version` | Integer | Slate version to use (e.g., `4`). |
124+ | `public_key` | string | Slatepack Recipient Address in the field |
125+ | `late_lock` | Boolean | Enable Late lock to lock the input at the finalization step (`true`) |
124126
125127
126128::: details Request Example
@@ -139,9 +141,15 @@ The sender creates a transaction slate by calling the method [init_send_tx](http
139141 "num_change_outputs": 1,
140142 "selection_strategy_is_use_all": false,
141143 "target_slate_version": 4,
144+ "late_lock": true,
142145 "payment_proof_recipient_address": null,
143146 "ttl_blocks": null,
144- "send_args": null
147+ "send_args": null,
148+ "slatepack_recipient": {
149+ "public_key": "4viaavr3hgyl26zqwwux4zsvairvqrbzfef7ih7tyk3a3jheqselndqd",
150+ "domain": null,
151+ "port": null,
152+ }
145153 }
146154 }
147155}
@@ -229,8 +237,8 @@ The transaction slate is encoded into a Slatepack message for sharing with the r
229237| `token` | String | API token for authentication. |
230238| `slate` | Object | The slate object returned from `init_send_tx`. |
231239| `content` | String | The content type of the Slatepack (e.g., `SendInitial`). |
232- | `recipient` | String | Optional. Recipient’s address for payment proof (if required) . |
233- | `address_index` | Integer | Optional. Index of the sender' s address for the Slatepack. |
240+ | `recipient` | String | Recipient’s Slatepack address . |
241+ | `address_index` | Integer | Optional. Index of the sender' s address for the Slatepack. ( ' null ' ) |
234242
235243---
236244::: details Request Example
@@ -301,7 +309,11 @@ The transaction slate is encoded into a Slatepack message for sharing with the r
301309 }
302310 },
303311 " content" : " SendInitial" ,
304- " recipient" : null,
312+ " recipient" :{
313+ " public_key" : " 4viaavr3hgyl26zqwwux4zsvairvqrbzfef7ih7tyk3a3jheqselndqd" ,
314+ " domain" : null,
315+ " port" : null,
316+ },
305317 " address_index" : 0
306318 }
307319}
@@ -321,47 +333,6 @@ The transaction slate is encoded into a Slatepack message for sharing with the r
321333:::
322334
323335
324- # ## **Step 3: Lock Outputs**
325-
326- The sender ensures the outputs for the transaction are locked using [tx_lock_outputs](https://docs.rs/mwc_wallet_api/5.3.4/mwc_wallet_api/trait.OwnerRpcV3.html#tymethod.tx_lock_outputs).
327-
328- ` tx_lock_outputs` < Badge type=" info" text=" POST" />
329-
330- | Parameter | Type | Description |
331- | -------------------| --------| -------------------------------------------------------------------|
332- | ` token` | String | API token for authentication. |
333- | ` slate` | String | Encoded Slatepack message from ` encode_slatepack_message` . |
334- | ` participant_id` | Integer | ID of the participant locking the funds (typically ` 0` for sender). |
335-
336-
337- ::: details Request Example
338- ` ` ` json
339- {
340- " jsonrpc" : " 2.0" ,
341- " id" : 1,
342- " method" : " tx_lock_outputs" ,
343- " params" : {
344- " token" : " f97e6cfd63b5332ef40e91203458058ef68c7646ab0f4d0f419cdcd5056f74e9" ,
345- " slate" : " BEGINSLATE_BIN. 62GzuKRdyEXA7NS j9ZVB7tYCXotthS ZsjFZkRCmorDE1E LhTdCkxG1RP6A9U HaV64mMmLVcZur2 nyUiJGF4CcpwzGb qUy3uWgP2mp6H2p oXGd4w7GDYTubC2 1fkbtcpbThkSY9p Uw. ENDSLATE_BIN." ,
346- " participant_id" : 0
347- }
348- }
349- ` ` `
350- :::
351-
352- ::: details Ok Response
353- ` ` ` json
354- {
355- " jsonrpc" : " 2.0" ,
356- " id" : 1,
357- " result" : {
358- " Ok" : null
359- }
360- }
361- ` ` `
362- :::
363-
364-
365336# ## **Step 4: Sending the Initial Slatepack to the User**
366337After creating and encoding the initial slate, you must share the slatepack with the recipient. Typically, this is done through a secure channel, such as a file, email, or a messaging service.
367338
0 commit comments