mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-21 04:05:49 +00:00
parse_pages - configurable apitool doc and base urls
This commit is contained in:
34
assets/js/apitool-methods-jsonrpc.js
Normal file
34
assets/js/apitool-methods-jsonrpc.js
Normal file
@@ -0,0 +1,34 @@
|
||||
//---------- List of requests ------------------------//
|
||||
// Must be loaded after apitool-rest.js //
|
||||
//var DOC_BASE = "reference-rippled.html";
|
||||
//var URL_BASE = "https://s2.ripple.com:51234";
|
||||
|
||||
var DEFAULT_ADDRESS_1 = "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn";
|
||||
var KRW_TRADER_ADDRESS = "rsyDrDi9Emy6vPU78qdxovmNpmj5Qh4NKw";
|
||||
var JPY_TRADER_ADDRESS = "rK5j9n8baXfL4gzUoZsfxBvvsv97P5swaV";
|
||||
var DEFAULT_HASH = "9D591B18EDDD34F0B6CF4223A2940AEA2C3CC778925BABF289E0011CD8FA056E";
|
||||
var DEFAULT_LEDGER = "3170DA37CE2B7F045F889594CBC323D88686D2E90E8FFD2BBCD9BAD12E416DB5";
|
||||
|
||||
// general methods -----------------------------------//
|
||||
|
||||
Request("ACCOUNT INFORMATION");
|
||||
|
||||
Request('account_currencies', {
|
||||
method: POST,
|
||||
path: "/",
|
||||
description: "Retrieves a simple list of currencies that an account can send or receive, based on its trust lines.",
|
||||
link: "#account-currencies",
|
||||
params: {},
|
||||
body: {
|
||||
"method": "account_currencies",
|
||||
"params": [
|
||||
{
|
||||
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
||||
"account_index": 0,
|
||||
"ledger_index": "validated",
|
||||
"strict": true
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user