Mark code sample languages explicitly

This commit is contained in:
mDuo13
2020-09-10 02:18:40 -07:00
parent eb6142f270
commit d46202a04f
92 changed files with 531 additions and 450 deletions

View File

@@ -15,7 +15,7 @@
*WebSocket*
```
```json
{
"id": 2,
"command": "sign",
@@ -37,7 +37,7 @@
*JSON-RPC*
```
```json
{
"method": "sign",
"params": [
@@ -62,7 +62,7 @@
*コマンドライン*
```
```sh
#Syntax: sign secret tx_json [offline]
rippled sign s████████████████████████████ '{"TransactionType": "Payment", "Account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn", "Destination": "ra5nK24KXen9AHvsdFTKHSANinZseWnPcX", "Amount": { "currency": "USD", "value": "1", "issuer" : "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn" }, "Sequence": 360, "Fee": "10000"}' offline
```
@@ -109,7 +109,7 @@ rippled sign s██████████████████████
*WebSocket*
```
```json
{
"id": 2,
"status": "success",
@@ -138,8 +138,9 @@ rippled sign s██████████████████████
*JSON-RPC*
```
```json
200 OK
{
"result": {
"status": "success",
@@ -166,9 +167,10 @@ rippled sign s██████████████████████
*コマンドライン*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"status" : "success",

View File

@@ -15,7 +15,7 @@ An example of the request format:
*WebSocket*
```
```json
{
"id": 2,
"command": "sign",
@@ -37,7 +37,7 @@ An example of the request format:
*JSON-RPC*
```
```json
{
"method": "sign",
"params": [
@@ -62,7 +62,7 @@ An example of the request format:
*Commandline*
```
```sh
#Syntax: sign secret tx_json [offline]
rippled sign s████████████████████████████ '{"TransactionType": "Payment", "Account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn", "Destination": "ra5nK24KXen9AHvsdFTKHSANinZseWnPcX", "Amount": { "currency": "USD", "value": "1", "issuer" : "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn" }, "Sequence": 360, "Fee": "10000"}' offline
```
@@ -109,7 +109,7 @@ An example of a successful response:
*WebSocket*
```
```json
{
"id": 2,
"status": "success",
@@ -138,8 +138,9 @@ An example of a successful response:
*JSON-RPC*
```
```json
200 OK
{
"result": {
"status": "success",
@@ -166,9 +167,10 @@ An example of a successful response:
*Commandline*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"status" : "success",

View File

@@ -15,7 +15,7 @@
*WebSocket*
```
```json
{
"id":"sign_for_example",
"command":"sign_for",
@@ -40,8 +40,7 @@
*JSON-RPC*
```
POST http://localhost:5005/
```json
{
"method":"sign_for",
"params":[{
@@ -67,7 +66,7 @@ POST http://localhost:5005/
*コマンドライン*
```
```sh
#Syntax: rippled sign_for <signer_address> <signer_secret> [offline]
rippled sign_for rsA2LpzuawewSBQXkiju3YQTMzW13pAAdW s████████████████████████████ '{
"TransactionType":"TrustSet",
@@ -111,7 +110,7 @@ rippled sign_for rsA2LpzuawewSBQXkiju3YQTMzW13pAAdW s█████████
*WebSocket*
```
```json
{
"id":"sign_for_example",
"status":"success",
@@ -182,9 +181,10 @@ rippled sign_for rsA2LpzuawewSBQXkiju3YQTMzW13pAAdW s█████████
*コマンドライン*
```
```json
Loading:"/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" :{
"status" :"success",

View File

@@ -15,7 +15,7 @@ An example of the request format:
*WebSocket*
```
```json
{
"id": "sign_for_example",
"command": "sign_for",
@@ -40,8 +40,7 @@ An example of the request format:
*JSON-RPC*
```
POST http://localhost:5005/
```json
{
"method": "sign_for",
"params": [{
@@ -67,7 +66,7 @@ POST http://localhost:5005/
*Commandline*
```
```sh
#Syntax: rippled sign_for <signer_address> <signer_secret> [offline]
rippled sign_for rsA2LpzuawewSBQXkiju3YQTMzW13pAAdW s████████████████████████████ '{
"TransactionType": "TrustSet",
@@ -111,7 +110,7 @@ An example of a successful response:
*WebSocket*
```
```json
{
"id": "sign_for_example",
"status": "success",
@@ -147,8 +146,9 @@ An example of a successful response:
*JSON-RPC*
```
```json
200 OK
{
"result" : {
"status" : "success",
@@ -182,9 +182,10 @@ An example of a successful response:
*Commandline*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"status" : "success",

View File

@@ -25,7 +25,7 @@
*WebSocket*
```
```json
{
"id": 3,
"command": "submit",
@@ -35,7 +35,7 @@
*JSON-RPC*
```
```json
{
"method": "submit",
"params": [
@@ -48,7 +48,7 @@
*コマンドライン*
```
```sh
#Syntax: submit tx_blob
submit 1200002280000000240000000361D4838D7EA4C6800000000000000000000000000055534400000000004B4E9C06F24296074F7BC48F92A97916C6DC5EA968400000000000000A732103AB40A0490F9B7ED8DF29D246BF2D6269820A0EE7742ACDD457BEA7C7D0931EDB74473045022100D184EB4AE5956FF600E7536EE459345C7BBCF097A84CC61A93B9AF7197EDB98702201CEA8009B7BEEBAA2AACC0359B41C427C1C5B550A4CA4B80CF2174AF2D6D5DCE81144B4E9C06F24296074F7BC48F92A97916C6DC5EA983143E9D4A2B8AA0780F682D136F7A56D6724EF53754
```
@@ -94,7 +94,7 @@ submit 1200002280000000240000000361D4838D7EA4C6800000000000000000000000000055534
*WebSocket*
```
```json
{
"id": 2,
"command": "submit",
@@ -116,7 +116,7 @@ submit 1200002280000000240000000361D4838D7EA4C6800000000000000000000000000055534
*JSON-RPC*
```
```json
{
"method": "submit",
"params": [
@@ -141,7 +141,7 @@ submit 1200002280000000240000000361D4838D7EA4C6800000000000000000000000000055534
*コマンドライン*
```
```sh
#Syntax: submit secret json [offline]
rippled submit s████████████████████████████ '{"Account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn", "Amount": { "currency": "USD", "issuer": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn", "value": "1" }, "Destination": "ra5nK24KXen9AHvsdFTKHSANinZseWnPcX", "TransactionType": "Payment", "Fee": "10000"}'
```
@@ -158,7 +158,7 @@ rippled submit s█████████████████████
*WebSocket*
```
```json
{
"id": 1,
"status": "success",
@@ -190,7 +190,7 @@ rippled submit s█████████████████████
*JSON-RPC*
```
```json
{
"result": {
"engine_result": "tesSUCCESS",
@@ -220,9 +220,10 @@ rippled submit s█████████████████████
*コマンドライン*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"engine_result" : "tesSUCCESS",

View File

@@ -25,7 +25,7 @@ A submit-only request includes the following parameters:
*WebSocket*
```
```json
{
"id": 3,
"command": "submit",
@@ -35,7 +35,7 @@ A submit-only request includes the following parameters:
*JSON-RPC*
```
```json
{
"method": "submit",
"params": [
@@ -48,7 +48,7 @@ A submit-only request includes the following parameters:
*Commandline*
```
```sh
#Syntax: submit tx_blob
submit 1200002280000000240000000361D4838D7EA4C6800000000000000000000000000055534400000000004B4E9C06F24296074F7BC48F92A97916C6DC5EA968400000000000000A732103AB40A0490F9B7ED8DF29D246BF2D6269820A0EE7742ACDD457BEA7C7D0931EDB74473045022100D184EB4AE5956FF600E7536EE459345C7BBCF097A84CC61A93B9AF7197EDB98702201CEA8009B7BEEBAA2AACC0359B41C427C1C5B550A4CA4B80CF2174AF2D6D5DCE81144B4E9C06F24296074F7BC48F92A97916C6DC5EA983143E9D4A2B8AA0780F682D136F7A56D6724EF53754
```
@@ -94,7 +94,7 @@ An example of the request format:
*WebSocket*
```
```json
{
"id": 2,
"command": "submit",
@@ -116,7 +116,7 @@ An example of the request format:
*JSON-RPC*
```
```json
{
"method": "submit",
"params": [
@@ -141,7 +141,7 @@ An example of the request format:
*Commandline*
```
```sh
#Syntax: submit secret json [offline]
rippled submit s████████████████████████████ '{"Account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn", "Amount": { "currency": "USD", "issuer": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn", "value": "1" }, "Destination": "ra5nK24KXen9AHvsdFTKHSANinZseWnPcX", "TransactionType": "Payment", "Fee": "10000"}'
```

View File

@@ -12,9 +12,9 @@
*WebSocket*
```
```json
{
"id": "submit_multisigned_example"
"id": "submit_multisigned_example",
"command": "submit_multisigned",
"tx_json": {
"Account": "rEuLyBCvcw4CFmzv8RepSiAoNgF8tTGJQC",
@@ -48,7 +48,7 @@
*JSON-RPC*
```
```json
{
"method": "submit_multisigned",
"params": [
@@ -90,7 +90,7 @@
*コマンドライン*
```
```sh
#Syntax: submit_multisigned <tx_json>
rippled submit_multisigned '{
"Account": "rEuLyBCvcw4CFmzv8RepSiAoNgF8tTGJQC",
@@ -141,7 +141,7 @@ rippled submit_multisigned '{
*WebSocket*
```
```json
{
"id": "submit_multisigned_example",
"status": "success",
@@ -187,8 +187,9 @@ rippled submit_multisigned '{
*JSON-RPC*
```
```json
200 OK
{
"result": {
"engine_result": "tesSUCCESS",

View File

@@ -12,7 +12,7 @@ An example of the request format:
*WebSocket*
```
```json
{
"id": "submit_multisigned_example",
"command": "submit_multisigned",
@@ -48,7 +48,7 @@ An example of the request format:
*JSON-RPC*
```
```json
{
"method": "submit_multisigned",
"params": [
@@ -90,7 +90,7 @@ An example of the request format:
*Commandline*
```
```sh
#Syntax: submit_multisigned <tx_json>
rippled submit_multisigned '{
"Account": "rEuLyBCvcw4CFmzv8RepSiAoNgF8tTGJQC",
@@ -141,7 +141,7 @@ An example of a successful response:
*WebSocket*
```
```json
{
"id": "submit_multisigned_example",
"status": "success",
@@ -187,8 +187,9 @@ An example of a successful response:
*JSON-RPC*
```
```json
200 OK
{
"result": {
"engine_result": "tesSUCCESS",

View File

@@ -11,7 +11,7 @@
*WebSocket*
```
```json
{
"id": 4,
"command": "transaction_entry",
@@ -22,7 +22,7 @@
*JSON-RPC*
```
```json
{
"method": "transaction_entry",
"params": [
@@ -36,7 +36,7 @@
*コマンドライン*
```
```sh
#Syntax: transaction_entry transaction_hash ledger_index|ledger_hash
rippled transaction_entry E08D6E9754025BA2534A78707605E0601F03ACE063687A0CA1BDDACFCD1698C7 348734
```
@@ -63,7 +63,7 @@ rippled transaction_entry E08D6E9754025BA2534A78707605E0601F03ACE063687A0CA1BDDA
*WebSocket*
```
```json
{
"id": 4,
"result": {

View File

@@ -11,7 +11,7 @@ An example of the request format:
*WebSocket*
```
```json
{
"id": 4,
"command": "transaction_entry",
@@ -22,7 +22,7 @@ An example of the request format:
*JSON-RPC*
```
```json
{
"method": "transaction_entry",
"params": [
@@ -36,7 +36,7 @@ An example of the request format:
*Commandline*
```
```sh
#Syntax: transaction_entry transaction_hash ledger_index|ledger_hash
rippled transaction_entry C53ECF838647FA5A4C780377025FEC7999AB4182590510CA461444B207AB74A9 56865245
```

View File

@@ -11,7 +11,7 @@
*WebSocket*
```
```json
{
"id": 1,
"command": "tx",
@@ -21,7 +21,7 @@
```
*JSON-RPC*
```
```json
{
"method": "tx",
"params": [
@@ -34,7 +34,7 @@
```
*コマンドライン*
```
```sh
#Syntax: tx transaction [binary]
rippled tx E08D6E9754025BA2534A78707605E0601F03ACE063687A0CA1BDDACFCD1698C7 false
```
@@ -58,7 +58,7 @@ rippled tx E08D6E9754025BA2534A78707605E0601F03ACE063687A0CA1BDDACFCD1698C7 fals
*WebSocket*
```
```json
{
"id": 1,
"result": {

View File

@@ -12,7 +12,7 @@
*WebSocket*
```
```json
{
"id": 5,
"command": "tx_history",
@@ -22,7 +22,7 @@
*JSON-RPC*
```
```json
{
"method": "tx_history",
"params": [
@@ -35,7 +35,7 @@
*コマンドライン*
```
```sh
#Syntax: tx_history [start]
rippled tx_history 0
```
@@ -58,7 +58,7 @@ rippled tx_history 0
*WebSocket*
```
```json
{
"id": 2,
"status": "success",
@@ -511,8 +511,9 @@ rippled tx_history 0
*JSON-RPC*
```
```json
200 OK
{
"result": {
"index": 0,

View File

@@ -12,7 +12,7 @@ An example of the request format:
*WebSocket*
```
```json
{
"id": 5,
"command": "tx_history",
@@ -22,7 +22,7 @@ An example of the request format:
*JSON-RPC*
```
```json
{
"method": "tx_history",
"params": [
@@ -35,7 +35,7 @@ An example of the request format:
*Commandline*
```
```sh
#Syntax: tx_history [start]
rippled tx_history 0
```
@@ -58,7 +58,7 @@ An example of a successful response:
*WebSocket*
```
```json
{
"id": 2,
"status": "success",
@@ -511,8 +511,9 @@ An example of a successful response:
*JSON-RPC*
```
```json
200 OK
{
"result": {
"index": 0,