mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-12-01 00:55:50 +00:00
Mark code sample languages explicitly
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"id": 4,
|
||||
"command": "book_offers",
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
*JSON-RPC*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"method": "book_offers",
|
||||
"params": [
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
*コマンドライン*
|
||||
|
||||
```
|
||||
```sh
|
||||
#Syntax: book_offers taker_pays taker_gets [taker [ledger [limit] ] ]
|
||||
rippled book_offers 'USD/rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B' 'EUR/rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B'
|
||||
```
|
||||
@@ -78,7 +78,7 @@ rippled book_offers 'USD/rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B' 'EUR/rvYAfWj5gh67oV6
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"id": 11,
|
||||
"status": "success",
|
||||
@@ -139,8 +139,9 @@ rippled book_offers 'USD/rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B' 'EUR/rvYAfWj5gh67oV6
|
||||
|
||||
*JSON-RPC*
|
||||
|
||||
```
|
||||
```json
|
||||
200 OK
|
||||
|
||||
{
|
||||
"result": {
|
||||
"ledger_current_index": 8696243,
|
||||
|
||||
@@ -10,7 +10,7 @@ An example of the request format:
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"id": 4,
|
||||
"command": "book_offers",
|
||||
@@ -28,7 +28,7 @@ An example of the request format:
|
||||
|
||||
*JSON-RPC*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"method": "book_offers",
|
||||
"params": [
|
||||
@@ -49,7 +49,7 @@ An example of the request format:
|
||||
|
||||
*Commandline*
|
||||
|
||||
```
|
||||
```sh
|
||||
#Syntax: book_offers taker_pays taker_gets [taker [ledger [limit] ] ]
|
||||
rippled book_offers 'USD/rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B' 'EUR/rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B'
|
||||
```
|
||||
@@ -138,8 +138,9 @@ An example of a successful response:
|
||||
|
||||
*JSON-RPC*
|
||||
|
||||
```
|
||||
```json
|
||||
200 OK
|
||||
|
||||
{
|
||||
"result": {
|
||||
"ledger_current_index": 8696243,
|
||||
|
||||
@@ -25,7 +25,7 @@ path_findコマンドには3種類のモード(サブコマンド)があり
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"id":8,
|
||||
"command":"path_find",
|
||||
@@ -65,7 +65,7 @@ path_findコマンドには3種類のモード(サブコマンド)があり
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"id":1,
|
||||
"status":"success",
|
||||
@@ -469,7 +469,7 @@ path_find create要求からの非同期フォローアップの例を次に示
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"id":1,
|
||||
"type":"path_find",
|
||||
@@ -500,7 +500,7 @@ path_find create要求からの非同期フォローアップの例を次に示
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"id":57,
|
||||
"command":"path_find",
|
||||
@@ -545,7 +545,7 @@ Pathfinding要求が正常にクローズされた場合、応答は[`path_find
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"id":58,
|
||||
"command":"path_find",
|
||||
|
||||
@@ -25,7 +25,7 @@ An example of the request format:
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"id": 8,
|
||||
"command": "path_find",
|
||||
@@ -65,7 +65,7 @@ An example of a successful response:
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"id": 1,
|
||||
"status": "success",
|
||||
@@ -469,7 +469,7 @@ Here is an example of an asynchronous follow-up from a path_find create request:
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"id": 1,
|
||||
"type": "path_find",
|
||||
@@ -500,7 +500,7 @@ An example of the request format:
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"id": 57,
|
||||
"command": "path_find",
|
||||
@@ -545,7 +545,7 @@ An example of the request format:
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"id": 58,
|
||||
"command": "path_find",
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"id":8,
|
||||
"command":"ripple_path_find",
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
*JSON-RPC*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"method":"ripple_path_find",
|
||||
"params":[
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
*コマンドライン*
|
||||
|
||||
```
|
||||
```sh
|
||||
#Syntax ripple_path_find json ledger_index|ledger_hash
|
||||
rippled ripple_path_find '{"source_account":"r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", "source_currencies":[ { "currency":"XRP" }, { "currency":"USD" } ], "destination_account":"r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", "destination_amount":{ "value":"0.001", "currency":"USD", "issuer":"rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B" } }'
|
||||
```
|
||||
@@ -94,7 +94,7 @@ rippled ripple_path_find '{"source_account":"r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59"
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"id":8,
|
||||
"status":"success",
|
||||
@@ -203,8 +203,9 @@ rippled ripple_path_find '{"source_account":"r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59"
|
||||
|
||||
*JSON-RPC*
|
||||
|
||||
```
|
||||
```json
|
||||
200 OK
|
||||
|
||||
{
|
||||
"result":{
|
||||
"alternatives":[
|
||||
|
||||
@@ -14,7 +14,7 @@ An example of the request format:
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"id": 8,
|
||||
"command": "ripple_path_find",
|
||||
@@ -38,7 +38,7 @@ An example of the request format:
|
||||
|
||||
*JSON-RPC*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"method": "ripple_path_find",
|
||||
"params": [
|
||||
@@ -65,7 +65,7 @@ An example of the request format:
|
||||
|
||||
*Commandline*
|
||||
|
||||
```
|
||||
```sh
|
||||
#Syntax ripple_path_find json ledger_index|ledger_hash
|
||||
rippled ripple_path_find '{"source_account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", "source_currencies": [ { "currency": "XRP" }, { "currency": "USD" } ], "destination_account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", "destination_amount": { "value": "0.001", "currency": "USD", "issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B" } }'
|
||||
```
|
||||
@@ -94,7 +94,7 @@ An example of a successful response:
|
||||
|
||||
*WebSocket*
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"id": 8,
|
||||
"status": "success",
|
||||
@@ -203,8 +203,9 @@ An example of a successful response:
|
||||
|
||||
*JSON-RPC*
|
||||
|
||||
```
|
||||
```json
|
||||
200 OK
|
||||
|
||||
{
|
||||
"result": {
|
||||
"alternatives": [
|
||||
|
||||
Reference in New Issue
Block a user