From 2df53e2f220c136605595eed3da0839808df484a Mon Sep 17 00:00:00 2001 From: Maria Shodunke Date: Mon, 30 Jun 2025 19:07:51 +0100 Subject: [PATCH] Fix simulate JSON RPC example --- .../transaction-methods/simulate.md | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/docs/references/http-websocket-apis/public-api-methods/transaction-methods/simulate.md b/docs/references/http-websocket-apis/public-api-methods/transaction-methods/simulate.md index 8d43758360..4f6c20b64e 100644 --- a/docs/references/http-websocket-apis/public-api-methods/transaction-methods/simulate.md +++ b/docs/references/http-websocket-apis/public-api-methods/transaction-methods/simulate.md @@ -42,19 +42,21 @@ An example of the request format: {% tab label="JSON-RPC" %} ```json { - "method": "simulate", - "params": { - "tx_json" : { - "TransactionType" : "Payment", - "Account" : "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn", - "Destination" : "ra5nK24KXen9AHvsdFTKHSANinZseWnPcX", - "Amount" : { - "currency" : "USD", - "value" : "1", - "issuer" : "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn" - } + "method": "simulate", + "params": [ + { + "tx_json": { + "TransactionType": "Payment", + "Account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn", + "Destination": "ra5nK24KXen9AHvsdFTKHSANinZseWnPcX", + "Amount": { + "currency": "USD", + "value": "1", + "issuer": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn" } + } } + ] } ``` {% /tab %}