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

@@ -12,7 +12,7 @@ _[PayChan Amendment][]が有効になっている必要があります。[新
*WebSocket*
```
```json
{
"id": "channel_authorize_example_id1",
"command": "channel_authorize",
@@ -42,7 +42,7 @@ Content-Type: application/json
*コマンドライン*
```
```sh
#Syntax: channel_authorize <private_key> [<key_type>] <channel_id> <drops>
rippled channel_authorize s████████████████████████████ secp256k1 5DB01B7FFED6B67E6B0414DED11E051D2EE2B7619CE0EAA6286D67A3A4D5BDB3 1000000
```
@@ -73,10 +73,10 @@ rippled channel_authorize s█████████████████
*WebSocket*
```
```json
{
"id": "channel_authorize_example_id1",
"status": "success"
"status": "success",
"result": {
"signature": "304402204EF0AFB78AC23ED1C472E74F4299C0C21F1B21D07EFC0A3838A420F76D783A400220154FB11B6F54320666E4C36CA7F686C16A3A0456800BBC43746F34AF50290064",
}
@@ -98,7 +98,7 @@ rippled channel_authorize s█████████████████
*コマンドライン*
```
```json
{
"result": {
"signature": "304402204EF0AFB78AC23ED1C472E74F4299C0C21F1B21D07EFC0A3838A420F76D783A400220154FB11B6F54320666E4C36CA7F686C16A3A0456800BBC43746F34AF50290064",

View File

@@ -12,7 +12,7 @@ An example of the request format:
*WebSocket*
```
```json
{
"id": "channel_authorize_example_id1",
"command": "channel_authorize",
@@ -42,7 +42,7 @@ Content-Type: application/json
*Commandline*
```
```sh
#Syntax: channel_authorize <private_key> [<key_type>] <channel_id> <drops>
rippled channel_authorize s████████████████████████████ secp256k1 5DB01B7FFED6B67E6B0414DED11E051D2EE2B7619CE0EAA6286D67A3A4D5BDB3 1000000
```
@@ -73,7 +73,7 @@ An example of a successful response:
*WebSocket*
```
```json
{
"id": "channel_authorize_example_id1",
"status": "success"
@@ -98,7 +98,7 @@ An example of a successful response:
*Commandline*
```
```json
{
"result": {
"signature": "304402204EF0AFB78AC23ED1C472E74F4299C0C21F1B21D07EFC0A3838A420F76D783A400220154FB11B6F54320666E4C36CA7F686C16A3A0456800BBC43746F34AF50290064",

View File

@@ -12,7 +12,7 @@ _[PayChan Amendment][]が有効になっている必要があります。[新
*WebSocket*
```
```json
{
"id":1,
"command":"channel_verify",
@@ -25,10 +25,7 @@ _[PayChan Amendment][]が有効になっている必要があります。[新
*JSON-RPC*
```
POST http://localhost:5005/
Content-Type: application/json
```json
{
"method":"channel_verify",
"params":[{
@@ -42,7 +39,7 @@ Content-Type: application/json
*コマンドライン*
```
```sh
#Syntax: channel_verify <public_key> <channel_id> <amount> <signature>
rippled channel_verify aB44YfzW24VDEJQ2UuLPV2PvqcPCSoLnL7y5M1EzhdW4LnK5xMS3 5DB01B7FFED6B67E6B0414DED11E051D2EE2B7619CE0EAA6286D67A3A4D5BDB3 1000000 304402204EF0AFB78AC23ED1C472E74F4299C0C21F1B21D07EFC0A3838A420F76D783A400220154FB11B6F54320666E4C36CA7F686C16A3A0456800BBC43746F34AF50290064
```
@@ -66,7 +63,7 @@ rippled channel_verify aB44YfzW24VDEJQ2UuLPV2PvqcPCSoLnL7y5M1EzhdW4LnK5xMS3 5DB0
*WebSocket*
```
```json
{
"id":1,
"status":"success",
@@ -79,7 +76,7 @@ rippled channel_verify aB44YfzW24VDEJQ2UuLPV2PvqcPCSoLnL7y5M1EzhdW4LnK5xMS3 5DB0
*JSON-RPC*
```
```json
200 OK
{
@@ -92,7 +89,7 @@ rippled channel_verify aB44YfzW24VDEJQ2UuLPV2PvqcPCSoLnL7y5M1EzhdW4LnK5xMS3 5DB0
*コマンドライン*
```
```json
{
"result":{
"signature_verified":true,

View File

@@ -12,7 +12,7 @@ An example of the request format:
*WebSocket*
```
```json
{
"id": 1,
"command": "channel_verify",
@@ -25,10 +25,7 @@ An example of the request format:
*JSON-RPC*
```
POST http://localhost:5005/
Content-Type: application/json
```json
{
"method": "channel_verify",
"params": [{
@@ -42,7 +39,7 @@ Content-Type: application/json
*Commandline*
```
```sh
#Syntax: channel_verify <public_key> <channel_id> <amount> <signature>
rippled channel_verify aB44YfzW24VDEJQ2UuLPV2PvqcPCSoLnL7y5M1EzhdW4LnK5xMS3 5DB01B7FFED6B67E6B0414DED11E051D2EE2B7619CE0EAA6286D67A3A4D5BDB3 1000000 304402204EF0AFB78AC23ED1C472E74F4299C0C21F1B21D07EFC0A3838A420F76D783A400220154FB11B6F54320666E4C36CA7F686C16A3A0456800BBC43746F34AF50290064
```
@@ -66,7 +63,7 @@ An example of a successful response:
*WebSocket*
```
```json
{
"id": 1,
"status": "success",
@@ -79,7 +76,7 @@ An example of a successful response:
*JSON-RPC*
```
```json
200 OK
{
@@ -92,7 +89,7 @@ An example of a successful response:
*Commandline*
```
```json
{
"result": {
"signature_verified":true,