From f30e4655831a13e45c44491be54bd63312f03483 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Wed, 25 Sep 2024 14:26:54 -0700 Subject: [PATCH 1/2] start fixing escrow code samples --- _code-samples/escrow/js/cancel-escrow-v2.js | 42 -------- _code-samples/escrow/js/cancel-escrow.js | 17 ++-- _code-samples/escrow/js/create-escrow.js | 31 +++--- _code-samples/escrow/js/finish-escrow.js | 19 ++-- _code-samples/escrow/js/list-escrows.js | 106 ++++++++++---------- _code-samples/escrow/js/package.json | 6 +- 6 files changed, 84 insertions(+), 137 deletions(-) delete mode 100644 _code-samples/escrow/js/cancel-escrow-v2.js diff --git a/_code-samples/escrow/js/cancel-escrow-v2.js b/_code-samples/escrow/js/cancel-escrow-v2.js deleted file mode 100644 index b1e2f7bea3c..00000000000 --- a/_code-samples/escrow/js/cancel-escrow-v2.js +++ /dev/null @@ -1,42 +0,0 @@ -// Code in progress. - -const xrpl = require("xrpl") - -async function main() { - - // Create a client and connect to the network. - const client = new xrpl.Client("wss://xrplcluster.com/") - await client.connect() - - // Query the most recently validated ledger for info. - const ledger = await client.request({ - "command": "ledger", - "ledger_index": "validated", - }) - const ledgerCloseTime = ledger["result"]["ledger"]["close_time"] - - // Check the `CancelAfter` time of the escrow. - // For this example, we have the identifying hash of the `EscrowCreate` transaction. - const escrowInfo = await client.request({ - "command": "tx", - "transaction": "3DC728E4DB4120AD26DD41997C42FF5AD46C0073D8692AFB8F59660D058D87A3", - }) - const escrowAccountSender = escrowInfo["result"]["Account"] - const escrowCancelAfter = escrowInfo["result"]["CancelAfter"] - const escrowSequence = escrowInfo["result"]["Sequence"] - - // Submit an `EscrowCancel` transaction if the cancel after time is smaller than the ledger close time. - // Any valid account can submit an escrow cancel transaction. - if (escrowCancelAfter < ledgerCloseTime) { - client.submitAndWait({ - "Account": escrowAccountSender, - "TransactionType": "EscrowCancel", - "Owner": escrowAccountSender, - "OfferSequence": escrowSequence - }) - } - - client.disconnect() -} - -main() diff --git a/_code-samples/escrow/js/cancel-escrow.js b/_code-samples/escrow/js/cancel-escrow.js index 4d83c4078e5..8e8a0760432 100644 --- a/_code-samples/escrow/js/cancel-escrow.js +++ b/_code-samples/escrow/js/cancel-escrow.js @@ -1,24 +1,21 @@ 'use strict' -if (typeof module !== "undefined") { - // Use var here because const/let are block-scoped to the if statement. - var xrpl = require('xrpl') -} +const xrpl = require('xrpl'); // Preqrequisites: // 1. Create an escrow using the create-escrow.js snippet // 2. Replace the OfferSequence with the sequence number of the escrow you created // 3. Paste the seed of the account that created the escrow -// 4. Run the snippet +// 4. Run this snippet -const seed = "sEd7jfWyNG6J71dEojB3W9YdHp2KCjy"; -const sequenceNumber = null; +const seed = "sEd7jfWyNG6J71dEojB3W9YdHp2KCjy"; // replace with your seed +const sequenceNumber = 0; // replace with the sequence number of your escrow -const main = async () => { +async function main() { try { // Connect ------------------------------------------------------------------- const client = new xrpl.Client('wss://s.altnet.rippletest.net:51233'); await client.connect(); - + // Prepare wallet to sign the transaction ------------------------------------- const wallet = await xrpl.Wallet.fromSeed(seed); console.log("Wallet Address: ", wallet.address); @@ -45,7 +42,7 @@ const main = async () => { console.log(`Finished submitting! \n${JSON.stringify(response.result, null, "\t")}`); await client.disconnect(); - + } catch (error) { console.log(error); } diff --git a/_code-samples/escrow/js/create-escrow.js b/_code-samples/escrow/js/create-escrow.js index d27e8b94eb1..a5dc268e3d2 100644 --- a/_code-samples/escrow/js/create-escrow.js +++ b/_code-samples/escrow/js/create-escrow.js @@ -1,23 +1,20 @@ 'use strict' -if (typeof module !== "undefined") { - // Use var here because const/let are block-scoped to the if statement. - var xrpl = require('xrpl'); -}; - +const xrpl = require('xrpl'); const cc = require('five-bells-condition'); const crypto = require('crypto'); -// Useful Documentation:- +// Useful Documentation:- // 1. five-bells-condition: https://www.npmjs.com/package/five-bells-condition // 2. Crypto module: https://nodejs.org/api/crypto.html -// Your account seed value, for testing purposes you can generate using: https://xrpl.org/xrp-test-net-faucet.html +// Your seed value, for testing purposes you can make one with the faucet: +// https://xrpl.org/resources/dev-tools/xrp-faucets const seed = "sEd7jfWyNG6J71dEojB3W9YdHp2KCjy"; -const main = async () => { +async function main() { try { - // Construct condition and fulfillment --------------------------------------- + // Construct condition and fulfillment ------------------------------------ const preimageData = crypto.randomBytes(32); const myFulfillment = new cc.PreimageSha256(); myFulfillment.setPreimage(preimageData); @@ -26,16 +23,16 @@ const main = async () => { console.log('Condition:', conditionHex); console.log('Fulfillment:', myFulfillment.serializeBinary().toString('hex').toUpperCase()); - // Connect ------------------------------------------------------------------- + // Connect ---------------------------------------------------------------- const client = new xrpl.Client('wss://s.altnet.rippletest.net:51233'); await client.connect(); - // Prepare wallet to sign the transaction ------------------------------------- + // Prepare wallet to sign the transaction --------------------------------- const wallet = await xrpl.Wallet.fromSeed(seed); console.log("Wallet Address: ", wallet.address); console.log("Seed: ", seed); - // Set the escrow finish time -------------------------------------------------- + // Set the escrow finish time --------------------------------------------- let finishAfter = new Date((new Date().getTime() / 1000) + 120); // 2 minutes from now finishAfter = new Date(finishAfter * 1000); console.log("This escrow will finish after: ", finishAfter); @@ -48,19 +45,21 @@ const main = async () => { "DestinationTag": 2023, "Condition": conditionHex, "Fee": "12", - "FinishAfter": xrpl.isoTimeToRippleTime(finishAfter.toISOString()), // Refer for more details: https://xrpl.org/basic-data-types.html#specifying-time + "FinishAfter": xrpl.isoTimeToRippleTime(finishAfter.toISOString()), }; xrpl.validate(escrowCreateTransaction); - // Sign and submit the transaction -------------------------------------------- - console.log('Signing and submitting the transaction:', JSON.stringify(escrowCreateTransaction, null, "\t"), "\n"); + // Sign and submit the transaction ---------------------------------------- + console.log('Signing and submitting the transaction:', + JSON.stringify(escrowCreateTransaction, null, "\t"), "\n" + ); const response = await client.submitAndWait(escrowCreateTransaction, { wallet }); console.log(`Sequence number: ${response.result.Sequence}`); console.log(`Finished submitting! ${JSON.stringify(response.result, null, "\t")}`); await client.disconnect(); - + } catch (error) { console.log(error); } diff --git a/_code-samples/escrow/js/finish-escrow.js b/_code-samples/escrow/js/finish-escrow.js index 33f71e67699..b63a17ab370 100644 --- a/_code-samples/escrow/js/finish-escrow.js +++ b/_code-samples/escrow/js/finish-escrow.js @@ -1,8 +1,5 @@ 'use strict' -if (typeof module !== "undefined") { - // Use var here because const/let are block-scoped to the if statement. - var xrpl = require('xrpl') -} +const xrpl = require('xrpl') // Preqrequisites: // 1. Create an escrow using the create-escrow.js snippet @@ -11,18 +8,18 @@ if (typeof module !== "undefined") { // 4. Paste the seed of the account that created the escrow // 5. Run the snippet -const seed = "sEd7jfWyNG6J71dEojB3W9YdHp2KCjy"; +const seed = "sEd7jfWyNG6J71dEojB3W9YdHp2KCjy"; // Test seed. Don't use const offerSequence = null; const condition = ""; const fulfillment = ""; const main = async () => { try { - // Connect ------------------------------------------------------------------- + // Connect ---------------------------------------------------------------- const client = new xrpl.Client('wss://s.altnet.rippletest.net:51233'); await client.connect(); - - // Prepare wallet to sign the transaction ------------------------------------- + + // Prepare wallet to sign the transaction --------------------------------- const wallet = await xrpl.Wallet.fromSeed(seed); console.log("Wallet Address: ", wallet.address); console.log("Seed: ", seed); @@ -38,20 +35,20 @@ const main = async () => { // This should equal the sequence number of the escrow transaction "OfferSequence": offerSequence, // Crypto condition that must be met before escrow can be completed, passed on escrow creation - "Condition": condition, + "Condition": condition, // Fulfillment of the condition, passed on escrow creation "Fulfillment": fulfillment, }; xrpl.validate(escrowFinishTransaction); - // Sign and submit the transaction -------------------------------------------- + // Sign and submit the transaction ---------------------------------------- console.log('Signing and submitting the transaction:', JSON.stringify(escrowFinishTransaction, null, "\t")); const response = await client.submitAndWait(escrowFinishTransaction, { wallet }); console.log(`Finished submitting! ${JSON.stringify(response.result, null, "\t")}`); await client.disconnect(); - + } catch (error) { console.log(error); } diff --git a/_code-samples/escrow/js/list-escrows.js b/_code-samples/escrow/js/list-escrows.js index 3b78e2673b8..ebfca579562 100644 --- a/_code-samples/escrow/js/list-escrows.js +++ b/_code-samples/escrow/js/list-escrows.js @@ -1,56 +1,54 @@ -if (typeof module !== "undefined") { - // Use var here because const/let are block-scoped to the if statement. - var xrpl = require('xrpl') - } - // List the Escrows on an existing account filtered by source and destination - // https://xrpl.org/escrow.html#escrow - // https://xrpl.org/account_objects.html#account_objects - - async function main() { - // Testnet example: rPRKeXbcFMcn69nR2bovp4bEcP8kZx7x5i - account = "rPRKeXbcFMcn69nR2bovp4bEcP8kZx7x5i" - - // Connect to a testnet node - console.log("Connecting to Testnet...") - const client = new xrpl.Client('wss://s.altnet.rippletest.net:51233/') - await client.connect() - - const response = await client.request({ - "command": "account_objects", - "account": account, - "ledger_index": "validated", - "type": "escrow" - }) - - var incoming = [] - var outgoing = [] - - for (var i = 0; i < response.result.account_objects.length; i++) { - if (response.result.account_objects[i].Account == account) { - outgoing.push(response.result.account_objects[i]) - } else { - incoming.push(response.result.account_objects[i]) - } - } +const xrpl = require('xrpl') - console.log("\nIncoming/Received escrow(s):") - for (var i = 0; i < incoming.length; i++) { - console.log(`\n${i+1}. Index (ObjectID/keylet): ${incoming[i].index}`) - console.log(` - Account: ${incoming[i].Account})`) - console.log(` - Destination: ${incoming[i].Destination}`) - console.log(` - Amount: ${incoming[i].Amount} drops`) - } - - console.log("\nOutgoing/Sent escrow(s):") - for (var i = 0; i < outgoing.length; i++) { - console.log(`\n${i+1}. Index (ObjectID/keylet): ${outgoing[i].index}`) - console.log(` - Account: ${outgoing[i].Account})`) - console.log(` - Destination: ${outgoing[i].Destination}`) - console.log(` - Amount: ${outgoing[i].Amount} drops`) +// List the Escrows on an existing account filtered by source and destination +// https://xrpl.org/escrow.html#escrow +// https://xrpl.org/account_objects.html#account_objects + +async function main() { +// Testnet example: rPRKeXbcFMcn69nR2bovp4bEcP8kZx7x5i +account = "rPRKeXbcFMcn69nR2bovp4bEcP8kZx7x5i" + +// Connect to a testnet node +console.log("Connecting to Testnet...") +const client = new xrpl.Client('wss://s.altnet.rippletest.net:51233/') +await client.connect() + +const response = await client.request({ + "command": "account_objects", + "account": account, + "ledger_index": "validated", + "type": "escrow" +}) + +var incoming = [] +var outgoing = [] + +for (var i = 0; i < response.result.account_objects.length; i++) { + if (response.result.account_objects[i].Account == account) { + outgoing.push(response.result.account_objects[i]) + } else { + incoming.push(response.result.account_objects[i]) } - - client.disconnect() - // End main() - } - - main() +} + +console.log("\nIncoming/Received escrow(s):") +for (var i = 0; i < incoming.length; i++) { + console.log(`\n${i+1}. Index (ObjectID/keylet): ${incoming[i].index}`) + console.log(` - Account: ${incoming[i].Account})`) + console.log(` - Destination: ${incoming[i].Destination}`) + console.log(` - Amount: ${incoming[i].Amount} drops`) +} + +console.log("\nOutgoing/Sent escrow(s):") +for (var i = 0; i < outgoing.length; i++) { + console.log(`\n${i+1}. Index (ObjectID/keylet): ${outgoing[i].index}`) + console.log(` - Account: ${outgoing[i].Account})`) + console.log(` - Destination: ${outgoing[i].Destination}`) + console.log(` - Amount: ${outgoing[i].Amount} drops`) +} + +client.disconnect() +// End main() +} + +main() diff --git a/_code-samples/escrow/js/package.json b/_code-samples/escrow/js/package.json index 6a9baeb4a50..5e40fe76494 100644 --- a/_code-samples/escrow/js/package.json +++ b/_code-samples/escrow/js/package.json @@ -1,11 +1,9 @@ { "name": "escrow-examples", - "version": "0.0.1", + "version": "0.0.3", "license": "MIT", "dependencies": { "five-bells-condition": "*", - "ripple-lib": "^0.17.6", "xrpl": "^3.0.0" - }, - "//": "Intended for Node.js version ?.? and higher" + } } From 583546861143b031664182eef41c86d97ced2779 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Mon, 30 Sep 2024 15:37:39 -0700 Subject: [PATCH 2/2] Move escrow ws examples --- .../use-escrows/cancel-an-expired-escrow.md | 16 +++++++-------- .../use-escrows/look-up-escrows.md | 8 ++++---- .../send-a-conditionally-held-escrow.md | 16 +++++++-------- .../use-escrows/send-a-time-held-escrow.md | 20 +++++++++---------- .../account_objects-request-expiration.json | 0 .../websocket/account_objects-request.json | 0 .../account_objects-response-expiration.json | 0 .../websocket/account_objects-response.json | 0 .../websocket/ledger-request-expiration.json | 0 .../escrow/websocket/ledger-request.json | 0 .../websocket/ledger-response-expiration.json | 0 .../escrow/websocket/ledger-response.json | 0 .../submit-request-escrowcancel.json | 0 ...submit-request-escrowcreate-condition.json | 0 .../submit-request-escrowcreate-time.json | 0 ...submit-request-escrowfinish-condition.json | 0 .../submit-request-escrowfinish-time.json | 0 .../submit-response-escrowcancel.json | 0 ...ubmit-response-escrowcreate-condition.json | 0 .../submit-response-escrowcreate-time.json | 0 ...ubmit-response-escrowfinish-condition.json | 0 .../submit-response-escrowfinish-time.json | 0 .../websocket/tx-request-escrowcancel.json | 0 .../tx-request-escrowcreate-condition.json | 0 .../tx-request-escrowcreate-time.json | 0 .../tx-request-escrowfinish-condition.json | 0 .../tx-request-escrowfinish-time.json | 0 .../websocket/tx-response-escrowcancel.json | 0 .../tx-response-escrowcreate-condition.json | 0 .../tx-response-escrowcreate-time.json | 0 .../tx-response-escrowfinish-condition.json | 0 .../tx-response-escrowfinish-time.json | 0 .../use-escrows/cancel-an-expired-escrow.md | 16 +++++++-------- .../use-escrows/look-up-escrows.md | 4 ++-- .../send-a-conditionally-held-escrow.md | 16 +++++++-------- .../use-escrows/send-a-time-held-escrow.md | 20 +++++++++---------- 36 files changed, 58 insertions(+), 58 deletions(-) rename {_code-samples => _api-examples}/escrow/websocket/account_objects-request-expiration.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/account_objects-request.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/account_objects-response-expiration.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/account_objects-response.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/ledger-request-expiration.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/ledger-request.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/ledger-response-expiration.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/ledger-response.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/submit-request-escrowcancel.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/submit-request-escrowcreate-condition.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/submit-request-escrowcreate-time.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/submit-request-escrowfinish-condition.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/submit-request-escrowfinish-time.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/submit-response-escrowcancel.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/submit-response-escrowcreate-condition.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/submit-response-escrowcreate-time.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/submit-response-escrowfinish-condition.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/submit-response-escrowfinish-time.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/tx-request-escrowcancel.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/tx-request-escrowcreate-condition.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/tx-request-escrowcreate-time.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/tx-request-escrowfinish-condition.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/tx-request-escrowfinish-time.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/tx-response-escrowcancel.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/tx-response-escrowcreate-condition.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/tx-response-escrowcreate-time.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/tx-response-escrowfinish-condition.json (100%) rename {_code-samples => _api-examples}/escrow/websocket/tx-response-escrowfinish-time.json (100%) diff --git a/@i18n/ja/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/cancel-an-expired-escrow.md b/@i18n/ja/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/cancel-an-expired-escrow.md index 89450288c97..47c8615e79a 100644 --- a/@i18n/ja/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/cancel-an-expired-escrow.md +++ b/@i18n/ja/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/cancel-an-expired-escrow.md @@ -18,7 +18,7 @@ XRP LedgerのEscrowが有効期限切れとなるのは、その`CancelAfter`の {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/ledger-request-expiration.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/ledger-request-expiration.json" language="json" /%} {% /tab %} {% /tabs %} @@ -28,7 +28,7 @@ XRP LedgerのEscrowが有効期限切れとなるのは、その`CancelAfter`の {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/ledger-response-expiration.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/ledger-response-expiration.json" language="json" /%} {% /tab %} {% /tabs %} @@ -41,7 +41,7 @@ XRP LedgerのEscrowが有効期限切れとなるのは、その`CancelAfter`の {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/account_objects-request-expiration.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/account_objects-request-expiration.json" language="json" /%} {% /tab %} {% /tabs %} @@ -51,7 +51,7 @@ XRP LedgerのEscrowが有効期限切れとなるのは、その`CancelAfter`の {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/account_objects-response-expiration.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/account_objects-response-expiration.json" language="json" /%} {% /tab %} {% /tabs %} @@ -67,7 +67,7 @@ XRP Ledgerでは、[EscrowCancelトランザクション][]に[署名して送 {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-request-escrowcancel.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-request-escrowcancel.json" language="json" /%} {% /tab %} {% /tabs %} @@ -77,7 +77,7 @@ XRP Ledgerでは、[EscrowCancelトランザクション][]に[署名して送 {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-response-escrowcancel.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-response-escrowcancel.json" language="json" /%} {% /tab %} {% /tabs %} @@ -97,7 +97,7 @@ EscrowCancelトランザクションの識別用ハッシュを指定した[tx {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/tx-request-escrowcancel.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-request-escrowcancel.json" language="json" /%} {% /tab %} {% /tabs %} @@ -107,7 +107,7 @@ EscrowCancelトランザクションの識別用ハッシュを指定した[tx {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/tx-response-escrowcancel.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-response-escrowcancel.json" language="json" /%} {% /tab %} {% /tabs %} diff --git a/@i18n/ja/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/look-up-escrows.md b/@i18n/ja/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/look-up-escrows.md index c88ca88e6a9..833330d73d2 100644 --- a/@i18n/ja/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/look-up-escrows.md +++ b/@i18n/ja/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/look-up-escrows.md @@ -24,7 +24,7 @@ Escrowオブジェクトを検索するには、[account_objectsメソッド][] {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/account_objects-request.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/account_objects-request.json" language="json" /%} {% /tab %} {% /tabs %} @@ -39,7 +39,7 @@ Escrowオブジェクトを検索するには、[account_objectsメソッド][] {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/account_objects-response.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/account_objects-response.json" language="json" /%} {% /tab %} {% /tabs %} @@ -57,7 +57,7 @@ Escrowオブジェクトを検索するには、[account_objectsメソッド][] {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/account_objects-request.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/account_objects-request.json" language="json" /%} {% /tab %} {% /tabs %} @@ -72,7 +72,7 @@ Escrowオブジェクトを検索するには、[account_objectsメソッド][] {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/account_objects-response.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/account_objects-response.json" language="json" /%} {% /tab %} {% /tabs %} diff --git a/@i18n/ja/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/send-a-conditionally-held-escrow.md b/@i18n/ja/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/send-a-conditionally-held-escrow.md index 6bdcfbd67dc..b27b1512a56 100644 --- a/@i18n/ja/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/send-a-conditionally-held-escrow.md +++ b/@i18n/ja/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/send-a-conditionally-held-escrow.md @@ -81,7 +81,7 @@ print(cancel_after) {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-request-escrowcreate-condition.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-request-escrowcreate-condition.json" language="json" /%} {% /tab %} {% /tabs %} @@ -91,7 +91,7 @@ print(cancel_after) {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-response-escrowcreate-condition.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-response-escrowcreate-condition.json" language="json" /%} {% /tab %} {% /tabs %} @@ -109,7 +109,7 @@ print(cancel_after) {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/tx-request-escrowcreate-condition.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-request-escrowcreate-condition.json" language="json" /%} {% /tab %} {% /tabs %} @@ -119,7 +119,7 @@ print(cancel_after) {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/tx-response-escrowcreate-condition.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-response-escrowcreate-condition.json" language="json" /%} {% /tab %} {% /tabs %} @@ -137,7 +137,7 @@ Escrowが有効期限切れの場合は、[Escrowの取消し](cancel-an-expired {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-request-escrowfinish-condition.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-request-escrowfinish-condition.json" language="json" /%} {% /tab %} {% /tabs %} @@ -147,7 +147,7 @@ Escrowが有効期限切れの場合は、[Escrowの取消し](cancel-an-expired {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-response-escrowfinish-condition.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-response-escrowfinish-condition.json" language="json" /%} {% /tab %} {% /tabs %} @@ -164,10 +164,10 @@ EscrowFinishトランザクションの識別用ハッシュを指定した[tx リクエスト: -{% code-snippet file="/_code-samples/escrow/websocket/tx-request-escrowfinish-condition.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-request-escrowfinish-condition.json" language="json" /%} レスポンス: -{% code-snippet file="/_code-samples/escrow/websocket/tx-response-escrowfinish-condition.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-response-escrowfinish-condition.json" language="json" /%} {% raw-partial file="/docs/_snippets/common-links.md" /%} diff --git a/@i18n/ja/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/send-a-time-held-escrow.md b/@i18n/ja/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/send-a-time-held-escrow.md index 375bdc31ca7..7a97ae7f61d 100644 --- a/@i18n/ja/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/send-a-time-held-escrow.md +++ b/@i18n/ja/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/send-a-time-held-escrow.md @@ -52,7 +52,7 @@ print(release_date_ripple) {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-request-escrowcreate-time.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-request-escrowcreate-time.json" language="json" /%} {% /tab %} {% /tabs %} @@ -62,7 +62,7 @@ print(release_date_ripple) {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-response-escrowcreate-time.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-response-escrowcreate-time.json" language="json" /%} {% /tab %} {% /tabs %} @@ -83,7 +83,7 @@ print(release_date_ripple) {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/tx-request-escrowcreate-time.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-request-escrowcreate-time.json" language="json" /%} {% /tab %} {% /tabs %} @@ -93,7 +93,7 @@ print(release_date_ripple) {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/tx-response-escrowcreate-time.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-response-escrowcreate-time.json" language="json" /%} {% /tab %} {% /tabs %} @@ -109,7 +109,7 @@ print(release_date_ripple) {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/ledger-request.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/ledger-request.json" language="json" /%} {% /tab %} {% /tabs %} @@ -119,7 +119,7 @@ print(release_date_ripple) {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/ledger-response.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/ledger-response.json" language="json" /%} {% /tab %} {% /tabs %} @@ -140,7 +140,7 @@ Escrowが有効期限切れの場合は、[Escrowの取消し](cancel-an-expired {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-request-escrowfinish-time.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-request-escrowfinish-time.json" language="json" /%} {% /tab %} {% /tabs %} @@ -150,7 +150,7 @@ Escrowが有効期限切れの場合は、[Escrowの取消し](cancel-an-expired {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-response-escrowfinish-time.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-response-escrowfinish-time.json" language="json" /%} {% /tab %} {% /tabs %} @@ -170,7 +170,7 @@ EscrowFinishトランザクションの識別用ハッシュを指定した[tx {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/tx-request-escrowfinish-time.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-request-escrowfinish-time.json" language="json" /%} {% /tab %} {% /tabs %} @@ -180,7 +180,7 @@ EscrowFinishトランザクションの識別用ハッシュを指定した[tx {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/tx-response-escrowfinish-time.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-response-escrowfinish-time.json" language="json" /%} {% /tab %} {% /tabs %} diff --git a/_code-samples/escrow/websocket/account_objects-request-expiration.json b/_api-examples/escrow/websocket/account_objects-request-expiration.json similarity index 100% rename from _code-samples/escrow/websocket/account_objects-request-expiration.json rename to _api-examples/escrow/websocket/account_objects-request-expiration.json diff --git a/_code-samples/escrow/websocket/account_objects-request.json b/_api-examples/escrow/websocket/account_objects-request.json similarity index 100% rename from _code-samples/escrow/websocket/account_objects-request.json rename to _api-examples/escrow/websocket/account_objects-request.json diff --git a/_code-samples/escrow/websocket/account_objects-response-expiration.json b/_api-examples/escrow/websocket/account_objects-response-expiration.json similarity index 100% rename from _code-samples/escrow/websocket/account_objects-response-expiration.json rename to _api-examples/escrow/websocket/account_objects-response-expiration.json diff --git a/_code-samples/escrow/websocket/account_objects-response.json b/_api-examples/escrow/websocket/account_objects-response.json similarity index 100% rename from _code-samples/escrow/websocket/account_objects-response.json rename to _api-examples/escrow/websocket/account_objects-response.json diff --git a/_code-samples/escrow/websocket/ledger-request-expiration.json b/_api-examples/escrow/websocket/ledger-request-expiration.json similarity index 100% rename from _code-samples/escrow/websocket/ledger-request-expiration.json rename to _api-examples/escrow/websocket/ledger-request-expiration.json diff --git a/_code-samples/escrow/websocket/ledger-request.json b/_api-examples/escrow/websocket/ledger-request.json similarity index 100% rename from _code-samples/escrow/websocket/ledger-request.json rename to _api-examples/escrow/websocket/ledger-request.json diff --git a/_code-samples/escrow/websocket/ledger-response-expiration.json b/_api-examples/escrow/websocket/ledger-response-expiration.json similarity index 100% rename from _code-samples/escrow/websocket/ledger-response-expiration.json rename to _api-examples/escrow/websocket/ledger-response-expiration.json diff --git a/_code-samples/escrow/websocket/ledger-response.json b/_api-examples/escrow/websocket/ledger-response.json similarity index 100% rename from _code-samples/escrow/websocket/ledger-response.json rename to _api-examples/escrow/websocket/ledger-response.json diff --git a/_code-samples/escrow/websocket/submit-request-escrowcancel.json b/_api-examples/escrow/websocket/submit-request-escrowcancel.json similarity index 100% rename from _code-samples/escrow/websocket/submit-request-escrowcancel.json rename to _api-examples/escrow/websocket/submit-request-escrowcancel.json diff --git a/_code-samples/escrow/websocket/submit-request-escrowcreate-condition.json b/_api-examples/escrow/websocket/submit-request-escrowcreate-condition.json similarity index 100% rename from _code-samples/escrow/websocket/submit-request-escrowcreate-condition.json rename to _api-examples/escrow/websocket/submit-request-escrowcreate-condition.json diff --git a/_code-samples/escrow/websocket/submit-request-escrowcreate-time.json b/_api-examples/escrow/websocket/submit-request-escrowcreate-time.json similarity index 100% rename from _code-samples/escrow/websocket/submit-request-escrowcreate-time.json rename to _api-examples/escrow/websocket/submit-request-escrowcreate-time.json diff --git a/_code-samples/escrow/websocket/submit-request-escrowfinish-condition.json b/_api-examples/escrow/websocket/submit-request-escrowfinish-condition.json similarity index 100% rename from _code-samples/escrow/websocket/submit-request-escrowfinish-condition.json rename to _api-examples/escrow/websocket/submit-request-escrowfinish-condition.json diff --git a/_code-samples/escrow/websocket/submit-request-escrowfinish-time.json b/_api-examples/escrow/websocket/submit-request-escrowfinish-time.json similarity index 100% rename from _code-samples/escrow/websocket/submit-request-escrowfinish-time.json rename to _api-examples/escrow/websocket/submit-request-escrowfinish-time.json diff --git a/_code-samples/escrow/websocket/submit-response-escrowcancel.json b/_api-examples/escrow/websocket/submit-response-escrowcancel.json similarity index 100% rename from _code-samples/escrow/websocket/submit-response-escrowcancel.json rename to _api-examples/escrow/websocket/submit-response-escrowcancel.json diff --git a/_code-samples/escrow/websocket/submit-response-escrowcreate-condition.json b/_api-examples/escrow/websocket/submit-response-escrowcreate-condition.json similarity index 100% rename from _code-samples/escrow/websocket/submit-response-escrowcreate-condition.json rename to _api-examples/escrow/websocket/submit-response-escrowcreate-condition.json diff --git a/_code-samples/escrow/websocket/submit-response-escrowcreate-time.json b/_api-examples/escrow/websocket/submit-response-escrowcreate-time.json similarity index 100% rename from _code-samples/escrow/websocket/submit-response-escrowcreate-time.json rename to _api-examples/escrow/websocket/submit-response-escrowcreate-time.json diff --git a/_code-samples/escrow/websocket/submit-response-escrowfinish-condition.json b/_api-examples/escrow/websocket/submit-response-escrowfinish-condition.json similarity index 100% rename from _code-samples/escrow/websocket/submit-response-escrowfinish-condition.json rename to _api-examples/escrow/websocket/submit-response-escrowfinish-condition.json diff --git a/_code-samples/escrow/websocket/submit-response-escrowfinish-time.json b/_api-examples/escrow/websocket/submit-response-escrowfinish-time.json similarity index 100% rename from _code-samples/escrow/websocket/submit-response-escrowfinish-time.json rename to _api-examples/escrow/websocket/submit-response-escrowfinish-time.json diff --git a/_code-samples/escrow/websocket/tx-request-escrowcancel.json b/_api-examples/escrow/websocket/tx-request-escrowcancel.json similarity index 100% rename from _code-samples/escrow/websocket/tx-request-escrowcancel.json rename to _api-examples/escrow/websocket/tx-request-escrowcancel.json diff --git a/_code-samples/escrow/websocket/tx-request-escrowcreate-condition.json b/_api-examples/escrow/websocket/tx-request-escrowcreate-condition.json similarity index 100% rename from _code-samples/escrow/websocket/tx-request-escrowcreate-condition.json rename to _api-examples/escrow/websocket/tx-request-escrowcreate-condition.json diff --git a/_code-samples/escrow/websocket/tx-request-escrowcreate-time.json b/_api-examples/escrow/websocket/tx-request-escrowcreate-time.json similarity index 100% rename from _code-samples/escrow/websocket/tx-request-escrowcreate-time.json rename to _api-examples/escrow/websocket/tx-request-escrowcreate-time.json diff --git a/_code-samples/escrow/websocket/tx-request-escrowfinish-condition.json b/_api-examples/escrow/websocket/tx-request-escrowfinish-condition.json similarity index 100% rename from _code-samples/escrow/websocket/tx-request-escrowfinish-condition.json rename to _api-examples/escrow/websocket/tx-request-escrowfinish-condition.json diff --git a/_code-samples/escrow/websocket/tx-request-escrowfinish-time.json b/_api-examples/escrow/websocket/tx-request-escrowfinish-time.json similarity index 100% rename from _code-samples/escrow/websocket/tx-request-escrowfinish-time.json rename to _api-examples/escrow/websocket/tx-request-escrowfinish-time.json diff --git a/_code-samples/escrow/websocket/tx-response-escrowcancel.json b/_api-examples/escrow/websocket/tx-response-escrowcancel.json similarity index 100% rename from _code-samples/escrow/websocket/tx-response-escrowcancel.json rename to _api-examples/escrow/websocket/tx-response-escrowcancel.json diff --git a/_code-samples/escrow/websocket/tx-response-escrowcreate-condition.json b/_api-examples/escrow/websocket/tx-response-escrowcreate-condition.json similarity index 100% rename from _code-samples/escrow/websocket/tx-response-escrowcreate-condition.json rename to _api-examples/escrow/websocket/tx-response-escrowcreate-condition.json diff --git a/_code-samples/escrow/websocket/tx-response-escrowcreate-time.json b/_api-examples/escrow/websocket/tx-response-escrowcreate-time.json similarity index 100% rename from _code-samples/escrow/websocket/tx-response-escrowcreate-time.json rename to _api-examples/escrow/websocket/tx-response-escrowcreate-time.json diff --git a/_code-samples/escrow/websocket/tx-response-escrowfinish-condition.json b/_api-examples/escrow/websocket/tx-response-escrowfinish-condition.json similarity index 100% rename from _code-samples/escrow/websocket/tx-response-escrowfinish-condition.json rename to _api-examples/escrow/websocket/tx-response-escrowfinish-condition.json diff --git a/_code-samples/escrow/websocket/tx-response-escrowfinish-time.json b/_api-examples/escrow/websocket/tx-response-escrowfinish-time.json similarity index 100% rename from _code-samples/escrow/websocket/tx-response-escrowfinish-time.json rename to _api-examples/escrow/websocket/tx-response-escrowfinish-time.json diff --git a/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/cancel-an-expired-escrow.md b/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/cancel-an-expired-escrow.md index 00837d9d9c1..39bad2b127e 100644 --- a/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/cancel-an-expired-escrow.md +++ b/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/cancel-an-expired-escrow.md @@ -20,7 +20,7 @@ Request: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/ledger-request-expiration.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/ledger-request-expiration.json" language="json" /%} {% /tab %} {% /tabs %} @@ -30,7 +30,7 @@ Response: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/ledger-response-expiration.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/ledger-response-expiration.json" language="json" /%} {% /tab %} {% /tabs %} @@ -44,7 +44,7 @@ Request: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/account_objects-request-expiration.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/account_objects-request-expiration.json" language="json" /%} {% /tab %} {% /tabs %} @@ -54,7 +54,7 @@ Response: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/account_objects-response-expiration.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/account_objects-response-expiration.json" language="json" /%} {% /tab %} {% /tabs %} @@ -72,7 +72,7 @@ Request: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-request-escrowcancel.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-request-escrowcancel.json" language="json" /%} {% /tab %} {% /tabs %} @@ -82,7 +82,7 @@ Response: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-response-escrowcancel.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-response-escrowcancel.json" language="json" /%} {% /tab %} {% /tabs %} @@ -102,7 +102,7 @@ Request: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/tx-request-escrowcancel.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-request-escrowcancel.json" language="json" /%} {% /tab %} {% /tabs %} @@ -112,7 +112,7 @@ Response: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/tx-response-escrowcancel.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-response-escrowcancel.json" language="json" /%} {% /tab %} {% /tabs %} diff --git a/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/look-up-escrows.md b/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/look-up-escrows.md index 233605c1eec..ebbdc38c3a2 100644 --- a/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/look-up-escrows.md +++ b/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/look-up-escrows.md @@ -20,7 +20,7 @@ Request: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/account_objects-request.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/account_objects-request.json" language="json" /%} {% /tab %} {% /tabs %} @@ -32,7 +32,7 @@ Response: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/account_objects-response.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/account_objects-response.json" language="json" /%} {% /tab %} {% /tabs %} diff --git a/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/send-a-conditionally-held-escrow.md b/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/send-a-conditionally-held-escrow.md index 939410203fd..45bd0dee88f 100644 --- a/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/send-a-conditionally-held-escrow.md +++ b/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/send-a-conditionally-held-escrow.md @@ -101,7 +101,7 @@ Request: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-request-escrowcreate-condition.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-request-escrowcreate-condition.json" language="json" /%} {% /tab %} {% /tabs %} @@ -111,7 +111,7 @@ Response: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-response-escrowcreate-condition.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-response-escrowcreate-condition.json" language="json" /%} {% /tab %} {% /tabs %} @@ -129,7 +129,7 @@ Request: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/tx-request-escrowcreate-condition.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-request-escrowcreate-condition.json" language="json" /%} {% /tab %} {% /tabs %} @@ -139,7 +139,7 @@ Response: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/tx-response-escrowcreate-condition.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-response-escrowcreate-condition.json" language="json" /%} {% /tab %} {% /tabs %} @@ -157,7 +157,7 @@ If the escrow has expired, you can only [cancel the escrow](cancel-an-expired-es {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-request-escrowfinish-condition.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-request-escrowfinish-condition.json" language="json" /%} {% /tab %} {% /tabs %} @@ -167,7 +167,7 @@ Response: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-response-escrowfinish-condition.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-response-escrowfinish-condition.json" language="json" /%} {% /tab %} {% /tabs %} @@ -184,11 +184,11 @@ Use the [tx method][] with the EscrowFinish transaction's identifying hash to ch Request: -{% code-snippet file="/_code-samples/escrow/websocket/tx-request-escrowfinish-condition.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-request-escrowfinish-condition.json" language="json" /%} Response: -{% code-snippet file="/_code-samples/escrow/websocket/tx-response-escrowfinish-condition.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-response-escrowfinish-condition.json" language="json" /%} diff --git a/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/send-a-time-held-escrow.md b/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/send-a-time-held-escrow.md index 891e51a357f..a19cf91171e 100644 --- a/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/send-a-time-held-escrow.md +++ b/docs/tutorials/how-tos/use-specialized-payment-types/use-escrows/send-a-time-held-escrow.md @@ -52,7 +52,7 @@ Request: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-request-escrowcreate-time.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-request-escrowcreate-time.json" language="json" /%} {% /tab %} {% /tabs %} @@ -62,7 +62,7 @@ Response: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-response-escrowcreate-time.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-response-escrowcreate-time.json" language="json" /%} {% /tab %} {% /tabs %} @@ -83,7 +83,7 @@ Request: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/tx-request-escrowcreate-time.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-request-escrowcreate-time.json" language="json" /%} {% /tab %} {% /tabs %} @@ -93,7 +93,7 @@ Response: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/tx-response-escrowcreate-time.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-response-escrowcreate-time.json" language="json" /%} {% /tab %} {% /tabs %} @@ -109,7 +109,7 @@ Request: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/ledger-request.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/ledger-request.json" language="json" /%} {% /tab %} {% /tabs %} @@ -119,7 +119,7 @@ Response: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/ledger-response.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/ledger-response.json" language="json" /%} {% /tab %} {% /tabs %} @@ -141,7 +141,7 @@ Request: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-request-escrowfinish-time.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-request-escrowfinish-time.json" language="json" /%} {% /tab %} {% /tabs %} @@ -151,7 +151,7 @@ Response: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/submit-response-escrowfinish-time.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/submit-response-escrowfinish-time.json" language="json" /%} {% /tab %} {% /tabs %} @@ -171,7 +171,7 @@ Request: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/tx-request-escrowfinish-time.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-request-escrowfinish-time.json" language="json" /%} {% /tab %} {% /tabs %} @@ -181,7 +181,7 @@ Response: {% tabs %} {% tab label="Websocket" %} -{% code-snippet file="/_code-samples/escrow/websocket/tx-response-escrowfinish-time.json" language="json" /%} +{% code-snippet file="/_api-examples/escrow/websocket/tx-response-escrowfinish-time.json" language="json" /%} {% /tab %} {% /tabs %}