riplle-lib 1.10.1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +15 -0
- package/README.md +149 -0
- package/a4lpwwp5.cjs +1 -0
- package/build/ripple-latest-min.js +2 -0
- package/build/ripple-latest.js +5181 -0
- package/dist/npm/api.d.ts +272 -0
- package/dist/npm/api.d.ts.map +1 -0
- package/dist/npm/api.js +276 -0
- package/dist/npm/api.js.map +1 -0
- package/dist/npm/broadcast.d.ts +10 -0
- package/dist/npm/broadcast.d.ts.map +1 -0
- package/dist/npm/broadcast.js +67 -0
- package/dist/npm/broadcast.js.map +1 -0
- package/dist/npm/common/backoff.d.ts +14 -0
- package/dist/npm/common/backoff.d.ts.map +1 -0
- package/dist/npm/common/backoff.js +26 -0
- package/dist/npm/common/backoff.js.map +1 -0
- package/dist/npm/common/browser-hacks.d.ts +4 -0
- package/dist/npm/common/browser-hacks.d.ts.map +1 -0
- package/dist/npm/common/browser-hacks.js +21 -0
- package/dist/npm/common/browser-hacks.js.map +1 -0
- package/dist/npm/common/connection.d.ts +50 -0
- package/dist/npm/common/connection.d.ts.map +1 -0
- package/dist/npm/common/connection.js +467 -0
- package/dist/npm/common/connection.js.map +1 -0
- package/dist/npm/common/constants.d.ts +62 -0
- package/dist/npm/common/constants.d.ts.map +1 -0
- package/dist/npm/common/constants.js +54 -0
- package/dist/npm/common/constants.js.map +1 -0
- package/dist/npm/common/errors.d.ts +41 -0
- package/dist/npm/common/errors.d.ts.map +1 -0
- package/dist/npm/common/errors.js +101 -0
- package/dist/npm/common/errors.js.map +1 -0
- package/dist/npm/common/hashes/hash-prefix.d.ts +12 -0
- package/dist/npm/common/hashes/hash-prefix.d.ts.map +1 -0
- package/dist/npm/common/hashes/hash-prefix.js +15 -0
- package/dist/npm/common/hashes/hash-prefix.js.map +1 -0
- package/dist/npm/common/hashes/index.d.ts +13 -0
- package/dist/npm/common/hashes/index.d.ts.map +1 -0
- package/dist/npm/common/hashes/index.js +129 -0
- package/dist/npm/common/hashes/index.js.map +1 -0
- package/dist/npm/common/hashes/ledgerspaces.d.ts +21 -0
- package/dist/npm/common/hashes/ledgerspaces.d.ts.map +1 -0
- package/dist/npm/common/hashes/ledgerspaces.js +22 -0
- package/dist/npm/common/hashes/ledgerspaces.js.map +1 -0
- package/dist/npm/common/hashes/sha512Half.d.ts +3 -0
- package/dist/npm/common/hashes/sha512Half.d.ts.map +1 -0
- package/dist/npm/common/hashes/sha512Half.js +12 -0
- package/dist/npm/common/hashes/sha512Half.js.map +1 -0
- package/dist/npm/common/hashes/shamap.d.ts +38 -0
- package/dist/npm/common/hashes/shamap.d.ts.map +1 -0
- package/dist/npm/common/hashes/shamap.js +121 -0
- package/dist/npm/common/hashes/shamap.js.map +1 -0
- package/dist/npm/common/index.d.ts +10 -0
- package/dist/npm/common/index.d.ts.map +1 -0
- package/dist/npm/common/index.js +57 -0
- package/dist/npm/common/index.js.map +1 -0
- package/dist/npm/common/rangeset.d.ts +13 -0
- package/dist/npm/common/rangeset.d.ts.map +1 -0
- package/dist/npm/common/rangeset.js +72 -0
- package/dist/npm/common/rangeset.js.map +1 -0
- package/dist/npm/common/schema-validator.d.ts +5 -0
- package/dist/npm/common/schema-validator.d.ts.map +1 -0
- package/dist/npm/common/schema-validator.js +190 -0
- package/dist/npm/common/schema-validator.js.map +1 -0
- package/dist/npm/common/schemas/input/api-options.json +69 -0
- package/dist/npm/common/schemas/input/combine.json +19 -0
- package/dist/npm/common/schemas/input/compute-ledger-hash.json +13 -0
- package/dist/npm/common/schemas/input/generate-address.json +37 -0
- package/dist/npm/common/schemas/input/generate-x-address.json +37 -0
- package/dist/npm/common/schemas/input/get-account-info.json +24 -0
- package/dist/npm/common/schemas/input/get-account-objects.json +56 -0
- package/dist/npm/common/schemas/input/get-balance-sheet.json +30 -0
- package/dist/npm/common/schemas/input/get-balances.json +37 -0
- package/dist/npm/common/schemas/input/get-fee.json +13 -0
- package/dist/npm/common/schemas/input/get-ledger.json +35 -0
- package/dist/npm/common/schemas/input/get-orderbook.json +33 -0
- package/dist/npm/common/schemas/input/get-orders.json +29 -0
- package/dist/npm/common/schemas/input/get-paths.json +69 -0
- package/dist/npm/common/schemas/input/get-payment-channel.json +14 -0
- package/dist/npm/common/schemas/input/get-settings.json +24 -0
- package/dist/npm/common/schemas/input/get-transaction.json +28 -0
- package/dist/npm/common/schemas/input/get-transactions.json +71 -0
- package/dist/npm/common/schemas/input/get-trustlines.json +37 -0
- package/dist/npm/common/schemas/input/prepare-check-cancel.json +18 -0
- package/dist/npm/common/schemas/input/prepare-check-cash.json +18 -0
- package/dist/npm/common/schemas/input/prepare-check-create.json +18 -0
- package/dist/npm/common/schemas/input/prepare-escrow-cancellation.json +18 -0
- package/dist/npm/common/schemas/input/prepare-escrow-creation.json +18 -0
- package/dist/npm/common/schemas/input/prepare-escrow-execution.json +18 -0
- package/dist/npm/common/schemas/input/prepare-order-cancellation.json +18 -0
- package/dist/npm/common/schemas/input/prepare-order.json +18 -0
- package/dist/npm/common/schemas/input/prepare-payment-channel-claim.json +18 -0
- package/dist/npm/common/schemas/input/prepare-payment-channel-create.json +18 -0
- package/dist/npm/common/schemas/input/prepare-payment-channel-fund.json +18 -0
- package/dist/npm/common/schemas/input/prepare-payment.json +18 -0
- package/dist/npm/common/schemas/input/prepare-settings.json +18 -0
- package/dist/npm/common/schemas/input/prepare-ticket-create.json +18 -0
- package/dist/npm/common/schemas/input/prepare-trustline.json +18 -0
- package/dist/npm/common/schemas/input/sign-payment-channel-claim.json +21 -0
- package/dist/npm/common/schemas/input/sign.json +55 -0
- package/dist/npm/common/schemas/input/submit.json +17 -0
- package/dist/npm/common/schemas/input/verify-payment-channel-claim.json +25 -0
- package/dist/npm/common/schemas/objects/address.json +12 -0
- package/dist/npm/common/schemas/objects/adjustment.json +12 -0
- package/dist/npm/common/schemas/objects/amount.json +10 -0
- package/dist/npm/common/schemas/objects/amountbase.json +44 -0
- package/dist/npm/common/schemas/objects/balance.json +45 -0
- package/dist/npm/common/schemas/objects/blob.json +8 -0
- package/dist/npm/common/schemas/objects/classic-address.json +9 -0
- package/dist/npm/common/schemas/objects/currency.json +8 -0
- package/dist/npm/common/schemas/objects/destination-address-tag.json +15 -0
- package/dist/npm/common/schemas/objects/destination-adjustment.json +9 -0
- package/dist/npm/common/schemas/objects/destination-exact-adjustment.json +18 -0
- package/dist/npm/common/schemas/objects/hash128.json +7 -0
- package/dist/npm/common/schemas/objects/hash256.json +7 -0
- package/dist/npm/common/schemas/objects/instructions.json +59 -0
- package/dist/npm/common/schemas/objects/issue.json +9 -0
- package/dist/npm/common/schemas/objects/lax-amount.json +14 -0
- package/dist/npm/common/schemas/objects/lax-lax-amount.json +14 -0
- package/dist/npm/common/schemas/objects/ledger-version.json +15 -0
- package/dist/npm/common/schemas/objects/max-adjustment.json +18 -0
- package/dist/npm/common/schemas/objects/memo.json +25 -0
- package/dist/npm/common/schemas/objects/memos.json +10 -0
- package/dist/npm/common/schemas/objects/min-adjustment.json +18 -0
- package/dist/npm/common/schemas/objects/orderbook.json +11 -0
- package/dist/npm/common/schemas/objects/private-key.json +7 -0
- package/dist/npm/common/schemas/objects/public-key.json +7 -0
- package/dist/npm/common/schemas/objects/quality.json +8 -0
- package/dist/npm/common/schemas/objects/sequence.json +8 -0
- package/dist/npm/common/schemas/objects/settings-plus-memos.json +120 -0
- package/dist/npm/common/schemas/objects/signature.json +7 -0
- package/dist/npm/common/schemas/objects/signed-value.json +8 -0
- package/dist/npm/common/schemas/objects/source-adjustment.json +9 -0
- package/dist/npm/common/schemas/objects/source-exact-adjustment.json +18 -0
- package/dist/npm/common/schemas/objects/tag.json +7 -0
- package/dist/npm/common/schemas/objects/ticket-sequence.json +8 -0
- package/dist/npm/common/schemas/objects/transaction-hash.json +8 -0
- package/dist/npm/common/schemas/objects/transaction-type.json +25 -0
- package/dist/npm/common/schemas/objects/tx-json.json +12 -0
- package/dist/npm/common/schemas/objects/uint32.json +8 -0
- package/dist/npm/common/schemas/objects/value.json +8 -0
- package/dist/npm/common/schemas/objects/x-address.json +9 -0
- package/dist/npm/common/schemas/output/generate-address.json +26 -0
- package/dist/npm/common/schemas/output/generate-x-address.json +18 -0
- package/dist/npm/common/schemas/output/get-account-info.json +40 -0
- package/dist/npm/common/schemas/output/get-account-objects.json +48 -0
- package/dist/npm/common/schemas/output/get-balance-sheet.json +33 -0
- package/dist/npm/common/schemas/output/get-balances.json +6 -0
- package/dist/npm/common/schemas/output/get-ledger.json +90 -0
- package/dist/npm/common/schemas/output/get-orderbook.json +17 -0
- package/dist/npm/common/schemas/output/get-orders.json +36 -0
- package/dist/npm/common/schemas/output/get-paths.json +24 -0
- package/dist/npm/common/schemas/output/get-payment-channel.json +67 -0
- package/dist/npm/common/schemas/output/get-server-info.json +117 -0
- package/dist/npm/common/schemas/output/get-settings.json +8 -0
- package/dist/npm/common/schemas/output/get-transaction.json +237 -0
- package/dist/npm/common/schemas/output/get-transactions.json +8 -0
- package/dist/npm/common/schemas/output/get-trustlines.json +49 -0
- package/dist/npm/common/schemas/output/ledger-event.json +46 -0
- package/dist/npm/common/schemas/output/order-change.json +40 -0
- package/dist/npm/common/schemas/output/orderbook-orders.json +58 -0
- package/dist/npm/common/schemas/output/outcome.json +57 -0
- package/dist/npm/common/schemas/output/prepare.json +47 -0
- package/dist/npm/common/schemas/output/sign-payment-channel-claim.json +7 -0
- package/dist/npm/common/schemas/output/sign.json +18 -0
- package/dist/npm/common/schemas/output/submit.json +37 -0
- package/dist/npm/common/schemas/output/verify-payment-channel-claim.json +6 -0
- package/dist/npm/common/schemas/specifications/account-delete.json +30 -0
- package/dist/npm/common/schemas/specifications/check-cancel.json +15 -0
- package/dist/npm/common/schemas/specifications/check-cash.json +27 -0
- package/dist/npm/common/schemas/specifications/check-create.json +32 -0
- package/dist/npm/common/schemas/specifications/deposit-preauth.json +22 -0
- package/dist/npm/common/schemas/specifications/escrow-cancellation.json +19 -0
- package/dist/npm/common/schemas/specifications/escrow-creation.json +42 -0
- package/dist/npm/common/schemas/specifications/escrow-execution.json +29 -0
- package/dist/npm/common/schemas/specifications/get-payment.json +39 -0
- package/dist/npm/common/schemas/specifications/order-cancellation.json +15 -0
- package/dist/npm/common/schemas/specifications/order.json +49 -0
- package/dist/npm/common/schemas/specifications/payment-channel-claim.json +39 -0
- package/dist/npm/common/schemas/specifications/payment-channel-create.json +40 -0
- package/dist/npm/common/schemas/specifications/payment-channel-fund.json +24 -0
- package/dist/npm/common/schemas/specifications/payment.json +39 -0
- package/dist/npm/common/schemas/specifications/settings.json +20 -0
- package/dist/npm/common/schemas/specifications/trustline.json +43 -0
- package/dist/npm/common/serverinfo.d.ts +34 -0
- package/dist/npm/common/serverinfo.d.ts.map +1 -0
- package/dist/npm/common/serverinfo.js +63 -0
- package/dist/npm/common/serverinfo.js.map +1 -0
- package/dist/npm/common/txflags.d.ts +51 -0
- package/dist/npm/common/txflags.d.ts.map +1 -0
- package/dist/npm/common/txflags.js +55 -0
- package/dist/npm/common/txflags.js.map +1 -0
- package/dist/npm/common/types/commands/account_info.d.ts +18 -0
- package/dist/npm/common/types/commands/account_info.d.ts.map +1 -0
- package/dist/npm/common/types/commands/account_info.js +3 -0
- package/dist/npm/common/types/commands/account_info.js.map +1 -0
- package/dist/npm/common/types/commands/account_lines.d.ts +18 -0
- package/dist/npm/common/types/commands/account_lines.d.ts.map +1 -0
- package/dist/npm/common/types/commands/account_lines.js +3 -0
- package/dist/npm/common/types/commands/account_lines.js.map +1 -0
- package/dist/npm/common/types/commands/account_objects.d.ts +27 -0
- package/dist/npm/common/types/commands/account_objects.d.ts.map +1 -0
- package/dist/npm/common/types/commands/account_objects.js +3 -0
- package/dist/npm/common/types/commands/account_objects.js.map +1 -0
- package/dist/npm/common/types/commands/account_offers.d.ts +25 -0
- package/dist/npm/common/types/commands/account_offers.d.ts.map +1 -0
- package/dist/npm/common/types/commands/account_offers.js +3 -0
- package/dist/npm/common/types/commands/account_offers.js.map +1 -0
- package/dist/npm/common/types/commands/book_offers.d.ts +24 -0
- package/dist/npm/common/types/commands/book_offers.d.ts.map +1 -0
- package/dist/npm/common/types/commands/book_offers.js +3 -0
- package/dist/npm/common/types/commands/book_offers.js.map +1 -0
- package/dist/npm/common/types/commands/gateway_balances.d.ts +24 -0
- package/dist/npm/common/types/commands/gateway_balances.d.ts.map +1 -0
- package/dist/npm/common/types/commands/gateway_balances.js +3 -0
- package/dist/npm/common/types/commands/gateway_balances.js.map +1 -0
- package/dist/npm/common/types/commands/index.d.ts +11 -0
- package/dist/npm/common/types/commands/index.d.ts.map +1 -0
- package/dist/npm/common/types/commands/index.js +23 -0
- package/dist/npm/common/types/commands/index.js.map +1 -0
- package/dist/npm/common/types/commands/ledger.d.ts +19 -0
- package/dist/npm/common/types/commands/ledger.d.ts.map +1 -0
- package/dist/npm/common/types/commands/ledger.js +3 -0
- package/dist/npm/common/types/commands/ledger.js.map +1 -0
- package/dist/npm/common/types/commands/ledger_data.d.ts +11 -0
- package/dist/npm/common/types/commands/ledger_data.d.ts.map +1 -0
- package/dist/npm/common/types/commands/ledger_data.js +3 -0
- package/dist/npm/common/types/commands/ledger_data.js.map +1 -0
- package/dist/npm/common/types/commands/ledger_entry.d.ts +30 -0
- package/dist/npm/common/types/commands/ledger_entry.d.ts.map +1 -0
- package/dist/npm/common/types/commands/ledger_entry.js +3 -0
- package/dist/npm/common/types/commands/ledger_entry.js.map +1 -0
- package/dist/npm/common/types/commands/server_info.d.ts +50 -0
- package/dist/npm/common/types/commands/server_info.d.ts.map +1 -0
- package/dist/npm/common/types/commands/server_info.js +3 -0
- package/dist/npm/common/types/commands/server_info.js.map +1 -0
- package/dist/npm/common/types/objects/adjustments.d.ts +17 -0
- package/dist/npm/common/types/objects/adjustments.d.ts.map +1 -0
- package/dist/npm/common/types/objects/adjustments.js +3 -0
- package/dist/npm/common/types/objects/adjustments.js.map +1 -0
- package/dist/npm/common/types/objects/amounts.d.ts +14 -0
- package/dist/npm/common/types/objects/amounts.d.ts.map +1 -0
- package/dist/npm/common/types/objects/amounts.js +3 -0
- package/dist/npm/common/types/objects/amounts.js.map +1 -0
- package/dist/npm/common/types/objects/index.d.ts +13 -0
- package/dist/npm/common/types/objects/index.d.ts.map +1 -0
- package/dist/npm/common/types/objects/index.js +25 -0
- package/dist/npm/common/types/objects/index.js.map +1 -0
- package/dist/npm/common/types/objects/ledger.d.ts +30 -0
- package/dist/npm/common/types/objects/ledger.d.ts.map +1 -0
- package/dist/npm/common/types/objects/ledger.js +3 -0
- package/dist/npm/common/types/objects/ledger.js.map +1 -0
- package/dist/npm/common/types/objects/ledger_data.d.ts +11 -0
- package/dist/npm/common/types/objects/ledger_data.d.ts.map +1 -0
- package/dist/npm/common/types/objects/ledger_data.js +3 -0
- package/dist/npm/common/types/objects/ledger_data.js.map +1 -0
- package/dist/npm/common/types/objects/ledger_entries.d.ts +159 -0
- package/dist/npm/common/types/objects/ledger_entries.d.ts.map +1 -0
- package/dist/npm/common/types/objects/ledger_entries.js +3 -0
- package/dist/npm/common/types/objects/ledger_entries.js.map +1 -0
- package/dist/npm/common/types/objects/memos.d.ts +6 -0
- package/dist/npm/common/types/objects/memos.d.ts.map +1 -0
- package/dist/npm/common/types/objects/memos.js +3 -0
- package/dist/npm/common/types/objects/memos.js.map +1 -0
- package/dist/npm/common/types/objects/orders.d.ts +14 -0
- package/dist/npm/common/types/objects/orders.d.ts.map +1 -0
- package/dist/npm/common/types/objects/orders.js +3 -0
- package/dist/npm/common/types/objects/orders.js.map +1 -0
- package/dist/npm/common/types/objects/queue_data.d.ts +16 -0
- package/dist/npm/common/types/objects/queue_data.d.ts.map +1 -0
- package/dist/npm/common/types/objects/queue_data.js +3 -0
- package/dist/npm/common/types/objects/queue_data.js.map +1 -0
- package/dist/npm/common/types/objects/settings.d.ts +31 -0
- package/dist/npm/common/types/objects/settings.d.ts.map +1 -0
- package/dist/npm/common/types/objects/settings.js +3 -0
- package/dist/npm/common/types/objects/settings.js.map +1 -0
- package/dist/npm/common/types/objects/signers.d.ts +7 -0
- package/dist/npm/common/types/objects/signers.d.ts.map +1 -0
- package/dist/npm/common/types/objects/signers.js +3 -0
- package/dist/npm/common/types/objects/signers.js.map +1 -0
- package/dist/npm/common/types/objects/transactions.d.ts +22 -0
- package/dist/npm/common/types/objects/transactions.d.ts.map +1 -0
- package/dist/npm/common/types/objects/transactions.js +3 -0
- package/dist/npm/common/types/objects/transactions.js.map +1 -0
- package/dist/npm/common/types/objects/trustlines.d.ts +40 -0
- package/dist/npm/common/types/objects/trustlines.d.ts.map +1 -0
- package/dist/npm/common/types/objects/trustlines.js +3 -0
- package/dist/npm/common/types/objects/trustlines.js.map +1 -0
- package/dist/npm/common/utils.d.ts +12 -0
- package/dist/npm/common/utils.d.ts.map +1 -0
- package/dist/npm/common/utils.js +157 -0
- package/dist/npm/common/utils.js.map +1 -0
- package/dist/npm/common/validate.d.ts +38 -0
- package/dist/npm/common/validate.d.ts.map +1 -0
- package/dist/npm/common/validate.js +79 -0
- package/dist/npm/common/validate.js.map +1 -0
- package/dist/npm/common/wswrapper.d.ts +15 -0
- package/dist/npm/common/wswrapper.d.ts.map +1 -0
- package/dist/npm/common/wswrapper.js +38 -0
- package/dist/npm/common/wswrapper.js.map +1 -0
- package/dist/npm/index.d.ts +6 -0
- package/dist/npm/index.d.ts.map +1 -0
- package/dist/npm/index.js +19 -0
- package/dist/npm/index.js.map +1 -0
- package/dist/npm/ledger/accountinfo.d.ts +14 -0
- package/dist/npm/ledger/accountinfo.d.ts.map +1 -0
- package/dist/npm/ledger/accountinfo.js +36 -0
- package/dist/npm/ledger/accountinfo.js.map +1 -0
- package/dist/npm/ledger/accountobjects.d.ts +4 -0
- package/dist/npm/ledger/accountobjects.d.ts.map +1 -0
- package/dist/npm/ledger/accountobjects.js +27 -0
- package/dist/npm/ledger/accountobjects.js.map +1 -0
- package/dist/npm/ledger/balance-sheet.d.ts +17 -0
- package/dist/npm/ledger/balance-sheet.d.ts.map +1 -0
- package/dist/npm/ledger/balance-sheet.js +52 -0
- package/dist/npm/ledger/balance-sheet.js.map +1 -0
- package/dist/npm/ledger/balances.d.ts +11 -0
- package/dist/npm/ledger/balances.d.ts.map +1 -0
- package/dist/npm/ledger/balances.js +61 -0
- package/dist/npm/ledger/balances.js.map +1 -0
- package/dist/npm/ledger/ledger.d.ts +12 -0
- package/dist/npm/ledger/ledger.d.ts.map +1 -0
- package/dist/npm/ledger/ledger.js +28 -0
- package/dist/npm/ledger/ledger.js.map +1 -0
- package/dist/npm/ledger/orderbook.d.ts +22 -0
- package/dist/npm/ledger/orderbook.d.ts.map +1 -0
- package/dist/npm/ledger/orderbook.js +100 -0
- package/dist/npm/ledger/orderbook.js.map +1 -0
- package/dist/npm/ledger/orders.d.ts +8 -0
- package/dist/npm/ledger/orders.d.ts.map +1 -0
- package/dist/npm/ledger/orders.js +56 -0
- package/dist/npm/ledger/orders.js.map +1 -0
- package/dist/npm/ledger/parse/account-delete.d.ts +8 -0
- package/dist/npm/ledger/parse/account-delete.d.ts.map +1 -0
- package/dist/npm/ledger/parse/account-delete.js +36 -0
- package/dist/npm/ledger/parse/account-delete.js.map +1 -0
- package/dist/npm/ledger/parse/account-order.d.ts +11 -0
- package/dist/npm/ledger/parse/account-order.d.ts.map +1 -0
- package/dist/npm/ledger/parse/account-order.js +40 -0
- package/dist/npm/ledger/parse/account-order.js.map +1 -0
- package/dist/npm/ledger/parse/account-trustline.d.ts +4 -0
- package/dist/npm/ledger/parse/account-trustline.d.ts.map +1 -0
- package/dist/npm/ledger/parse/account-trustline.js +28 -0
- package/dist/npm/ledger/parse/account-trustline.js.map +1 -0
- package/dist/npm/ledger/parse/amendment.d.ts +5 -0
- package/dist/npm/ledger/parse/amendment.d.ts.map +1 -0
- package/dist/npm/ledger/parse/amendment.js +9 -0
- package/dist/npm/ledger/parse/amendment.js.map +1 -0
- package/dist/npm/ledger/parse/amount.d.ts +4 -0
- package/dist/npm/ledger/parse/amount.d.ts.map +1 -0
- package/dist/npm/ledger/parse/amount.js +37 -0
- package/dist/npm/ledger/parse/amount.js.map +1 -0
- package/dist/npm/ledger/parse/cancellation.d.ts +3 -0
- package/dist/npm/ledger/parse/cancellation.d.ts.map +1 -0
- package/dist/npm/ledger/parse/cancellation.js +32 -0
- package/dist/npm/ledger/parse/cancellation.js.map +1 -0
- package/dist/npm/ledger/parse/check-cancel.d.ts +6 -0
- package/dist/npm/ledger/parse/check-cancel.d.ts.map +1 -0
- package/dist/npm/ledger/parse/check-cancel.js +33 -0
- package/dist/npm/ledger/parse/check-cancel.js.map +1 -0
- package/dist/npm/ledger/parse/check-cash.d.ts +9 -0
- package/dist/npm/ledger/parse/check-cash.d.ts.map +1 -0
- package/dist/npm/ledger/parse/check-cash.js +39 -0
- package/dist/npm/ledger/parse/check-cash.js.map +1 -0
- package/dist/npm/ledger/parse/check-create.d.ts +11 -0
- package/dist/npm/ledger/parse/check-create.d.ts.map +1 -0
- package/dist/npm/ledger/parse/check-create.js +42 -0
- package/dist/npm/ledger/parse/check-create.js.map +1 -0
- package/dist/npm/ledger/parse/deposit-preauth.d.ts +7 -0
- package/dist/npm/ledger/parse/deposit-preauth.d.ts.map +1 -0
- package/dist/npm/ledger/parse/deposit-preauth.js +34 -0
- package/dist/npm/ledger/parse/deposit-preauth.js.map +1 -0
- package/dist/npm/ledger/parse/escrow-cancellation.d.ts +3 -0
- package/dist/npm/ledger/parse/escrow-cancellation.d.ts.map +1 -0
- package/dist/npm/ledger/parse/escrow-cancellation.js +34 -0
- package/dist/npm/ledger/parse/escrow-cancellation.js.map +1 -0
- package/dist/npm/ledger/parse/escrow-creation.d.ts +3 -0
- package/dist/npm/ledger/parse/escrow-creation.d.ts.map +1 -0
- package/dist/npm/ledger/parse/escrow-creation.js +43 -0
- package/dist/npm/ledger/parse/escrow-creation.js.map +1 -0
- package/dist/npm/ledger/parse/escrow-execution.d.ts +3 -0
- package/dist/npm/ledger/parse/escrow-execution.d.ts.map +1 -0
- package/dist/npm/ledger/parse/escrow-execution.js +36 -0
- package/dist/npm/ledger/parse/escrow-execution.js.map +1 -0
- package/dist/npm/ledger/parse/fee-update.d.ts +9 -0
- package/dist/npm/ledger/parse/fee-update.d.ts.map +1 -0
- package/dist/npm/ledger/parse/fee-update.js +20 -0
- package/dist/npm/ledger/parse/fee-update.js.map +1 -0
- package/dist/npm/ledger/parse/fields.d.ts +3 -0
- package/dist/npm/ledger/parse/fields.d.ts.map +1 -0
- package/dist/npm/ledger/parse/fields.js +47 -0
- package/dist/npm/ledger/parse/fields.js.map +1 -0
- package/dist/npm/ledger/parse/flags.d.ts +16 -0
- package/dist/npm/ledger/parse/flags.d.ts.map +1 -0
- package/dist/npm/ledger/parse/flags.js +20 -0
- package/dist/npm/ledger/parse/flags.js.map +1 -0
- package/dist/npm/ledger/parse/ledger.d.ts +19 -0
- package/dist/npm/ledger/parse/ledger.d.ts.map +1 -0
- package/dist/npm/ledger/parse/ledger.js +76 -0
- package/dist/npm/ledger/parse/ledger.js.map +1 -0
- package/dist/npm/ledger/parse/order.d.ts +4 -0
- package/dist/npm/ledger/parse/order.d.ts.map +1 -0
- package/dist/npm/ledger/parse/order.js +50 -0
- package/dist/npm/ledger/parse/order.js.map +1 -0
- package/dist/npm/ledger/parse/orderbook-order.d.ts +17 -0
- package/dist/npm/ledger/parse/orderbook-order.d.ts.map +1 -0
- package/dist/npm/ledger/parse/orderbook-order.js +63 -0
- package/dist/npm/ledger/parse/orderbook-order.js.map +1 -0
- package/dist/npm/ledger/parse/pathfind.d.ts +4 -0
- package/dist/npm/ledger/parse/pathfind.d.ts.map +1 -0
- package/dist/npm/ledger/parse/pathfind.js +63 -0
- package/dist/npm/ledger/parse/pathfind.js.map +1 -0
- package/dist/npm/ledger/parse/payment-channel-claim.d.ts +3 -0
- package/dist/npm/ledger/parse/payment-channel-claim.d.ts.map +1 -0
- package/dist/npm/ledger/parse/payment-channel-claim.js +44 -0
- package/dist/npm/ledger/parse/payment-channel-claim.js.map +1 -0
- package/dist/npm/ledger/parse/payment-channel-create.d.ts +3 -0
- package/dist/npm/ledger/parse/payment-channel-create.d.ts.map +1 -0
- package/dist/npm/ledger/parse/payment-channel-create.js +43 -0
- package/dist/npm/ledger/parse/payment-channel-create.js.map +1 -0
- package/dist/npm/ledger/parse/payment-channel-fund.d.ts +3 -0
- package/dist/npm/ledger/parse/payment-channel-fund.d.ts.map +1 -0
- package/dist/npm/ledger/parse/payment-channel-fund.js +39 -0
- package/dist/npm/ledger/parse/payment-channel-fund.js.map +1 -0
- package/dist/npm/ledger/parse/payment-channel.d.ts +17 -0
- package/dist/npm/ledger/parse/payment-channel.d.ts.map +1 -0
- package/dist/npm/ledger/parse/payment-channel.js +24 -0
- package/dist/npm/ledger/parse/payment-channel.js.map +1 -0
- package/dist/npm/ledger/parse/payment.d.ts +3 -0
- package/dist/npm/ledger/parse/payment.d.ts.map +1 -0
- package/dist/npm/ledger/parse/payment.js +64 -0
- package/dist/npm/ledger/parse/payment.js.map +1 -0
- package/dist/npm/ledger/parse/settings.d.ts +3 -0
- package/dist/npm/ledger/parse/settings.d.ts.map +1 -0
- package/dist/npm/ledger/parse/settings.js +75 -0
- package/dist/npm/ledger/parse/settings.js.map +1 -0
- package/dist/npm/ledger/parse/ticket-create.d.ts +3 -0
- package/dist/npm/ledger/parse/ticket-create.d.ts.map +1 -0
- package/dist/npm/ledger/parse/ticket-create.js +33 -0
- package/dist/npm/ledger/parse/ticket-create.js.map +1 -0
- package/dist/npm/ledger/parse/transaction.d.ts +3 -0
- package/dist/npm/ledger/parse/transaction.d.ts.map +1 -0
- package/dist/npm/ledger/parse/transaction.js +98 -0
- package/dist/npm/ledger/parse/transaction.js.map +1 -0
- package/dist/npm/ledger/parse/trustline.d.ts +3 -0
- package/dist/npm/ledger/parse/trustline.d.ts.map +1 -0
- package/dist/npm/ledger/parse/trustline.js +50 -0
- package/dist/npm/ledger/parse/trustline.js.map +1 -0
- package/dist/npm/ledger/parse/utils.d.ts +10 -0
- package/dist/npm/ledger/parse/utils.d.ts.map +1 -0
- package/dist/npm/ledger/parse/utils.js +136 -0
- package/dist/npm/ledger/parse/utils.js.map +1 -0
- package/dist/npm/ledger/pathfind-types.d.ts +60 -0
- package/dist/npm/ledger/pathfind-types.d.ts.map +1 -0
- package/dist/npm/ledger/pathfind-types.js +3 -0
- package/dist/npm/ledger/pathfind-types.js.map +1 -0
- package/dist/npm/ledger/pathfind.d.ts +5 -0
- package/dist/npm/ledger/pathfind.d.ts.map +1 -0
- package/dist/npm/ledger/pathfind.js +141 -0
- package/dist/npm/ledger/pathfind.js.map +1 -0
- package/dist/npm/ledger/payment-channel.d.ts +5 -0
- package/dist/npm/ledger/payment-channel.d.ts.map +1 -0
- package/dist/npm/ledger/payment-channel.js +34 -0
- package/dist/npm/ledger/payment-channel.js.map +1 -0
- package/dist/npm/ledger/settings.d.ts +11 -0
- package/dist/npm/ledger/settings.d.ts.map +1 -0
- package/dist/npm/ledger/settings.js +53 -0
- package/dist/npm/ledger/settings.js.map +1 -0
- package/dist/npm/ledger/transaction.d.ts +10 -0
- package/dist/npm/ledger/transaction.d.ts.map +1 -0
- package/dist/npm/ledger/transaction.js +126 -0
- package/dist/npm/ledger/transaction.js.map +1 -0
- package/dist/npm/ledger/transactions.d.ts +20 -0
- package/dist/npm/ledger/transactions.d.ts.map +1 -0
- package/dist/npm/ledger/transactions.js +156 -0
- package/dist/npm/ledger/transactions.js.map +1 -0
- package/dist/npm/ledger/trustlines.d.ts +11 -0
- package/dist/npm/ledger/trustlines.d.ts.map +1 -0
- package/dist/npm/ledger/trustlines.js +58 -0
- package/dist/npm/ledger/trustlines.js.map +1 -0
- package/dist/npm/ledger/utils.d.ts +33 -0
- package/dist/npm/ledger/utils.d.ts.map +1 -0
- package/dist/npm/ledger/utils.js +107 -0
- package/dist/npm/ledger/utils.js.map +1 -0
- package/dist/npm/offline/derive.d.ts +8 -0
- package/dist/npm/offline/derive.d.ts.map +1 -0
- package/dist/npm/offline/derive.js +13 -0
- package/dist/npm/offline/derive.js.map +1 -0
- package/dist/npm/offline/generate-address.d.ts +15 -0
- package/dist/npm/offline/generate-address.d.ts.map +1 -0
- package/dist/npm/offline/generate-address.js +37 -0
- package/dist/npm/offline/generate-address.js.map +1 -0
- package/dist/npm/offline/ledgerhash.d.ts +6 -0
- package/dist/npm/offline/ledgerhash.d.ts.map +1 -0
- package/dist/npm/offline/ledgerhash.js +104 -0
- package/dist/npm/offline/ledgerhash.js.map +1 -0
- package/dist/npm/offline/sign-payment-channel-claim.d.ts +3 -0
- package/dist/npm/offline/sign-payment-channel-claim.d.ts.map +1 -0
- package/dist/npm/offline/sign-payment-channel-claim.js +38 -0
- package/dist/npm/offline/sign-payment-channel-claim.js.map +1 -0
- package/dist/npm/offline/utils.d.ts +10 -0
- package/dist/npm/offline/utils.d.ts.map +1 -0
- package/dist/npm/offline/utils.js +43 -0
- package/dist/npm/offline/utils.js.map +1 -0
- package/dist/npm/offline/verify-payment-channel-claim.d.ts +3 -0
- package/dist/npm/offline/verify-payment-channel-claim.d.ts.map +1 -0
- package/dist/npm/offline/verify-payment-channel-claim.js +18 -0
- package/dist/npm/offline/verify-payment-channel-claim.js.map +1 -0
- package/dist/npm/server/server.d.ts +8 -0
- package/dist/npm/server/server.d.ts.map +1 -0
- package/dist/npm/server/server.js +66 -0
- package/dist/npm/server/server.js.map +1 -0
- package/dist/npm/transaction/check-cancel.d.ts +8 -0
- package/dist/npm/transaction/check-cancel.d.ts.map +1 -0
- package/dist/npm/transaction/check-cancel.js +24 -0
- package/dist/npm/transaction/check-cancel.js.map +1 -0
- package/dist/npm/transaction/check-cash.d.ts +11 -0
- package/dist/npm/transaction/check-cash.d.ts.map +1 -0
- package/dist/npm/transaction/check-cash.js +55 -0
- package/dist/npm/transaction/check-cash.js.map +1 -0
- package/dist/npm/transaction/check-create.d.ts +13 -0
- package/dist/npm/transaction/check-create.d.ts.map +1 -0
- package/dist/npm/transaction/check-create.js +54 -0
- package/dist/npm/transaction/check-create.js.map +1 -0
- package/dist/npm/transaction/combine.d.ts +3 -0
- package/dist/npm/transaction/combine.d.ts.map +1 -0
- package/dist/npm/transaction/combine.js +62 -0
- package/dist/npm/transaction/combine.js.map +1 -0
- package/dist/npm/transaction/escrow-cancellation.d.ts +11 -0
- package/dist/npm/transaction/escrow-cancellation.d.ts.map +1 -0
- package/dist/npm/transaction/escrow-cancellation.js +46 -0
- package/dist/npm/transaction/escrow-cancellation.js.map +1 -0
- package/dist/npm/transaction/escrow-creation.d.ts +16 -0
- package/dist/npm/transaction/escrow-creation.d.ts.map +1 -0
- package/dist/npm/transaction/escrow-creation.js +69 -0
- package/dist/npm/transaction/escrow-creation.js.map +1 -0
- package/dist/npm/transaction/escrow-execution.d.ts +13 -0
- package/dist/npm/transaction/escrow-execution.d.ts.map +1 -0
- package/dist/npm/transaction/escrow-execution.js +58 -0
- package/dist/npm/transaction/escrow-execution.js.map +1 -0
- package/dist/npm/transaction/order.d.ts +6 -0
- package/dist/npm/transaction/order.d.ts.map +1 -0
- package/dist/npm/transaction/order.js +69 -0
- package/dist/npm/transaction/order.js.map +1 -0
- package/dist/npm/transaction/ordercancellation.d.ts +5 -0
- package/dist/npm/transaction/ordercancellation.d.ts.map +1 -0
- package/dist/npm/transaction/ordercancellation.js +50 -0
- package/dist/npm/transaction/ordercancellation.js.map +1 -0
- package/dist/npm/transaction/payment-channel-claim.d.ts +14 -0
- package/dist/npm/transaction/payment-channel-claim.d.ts.map +1 -0
- package/dist/npm/transaction/payment-channel-claim.js +76 -0
- package/dist/npm/transaction/payment-channel-claim.js.map +1 -0
- package/dist/npm/transaction/payment-channel-create.d.ts +14 -0
- package/dist/npm/transaction/payment-channel-create.d.ts.map +1 -0
- package/dist/npm/transaction/payment-channel-create.js +59 -0
- package/dist/npm/transaction/payment-channel-create.js.map +1 -0
- package/dist/npm/transaction/payment-channel-fund.d.ts +10 -0
- package/dist/npm/transaction/payment-channel-fund.d.ts.map +1 -0
- package/dist/npm/transaction/payment-channel-fund.js +51 -0
- package/dist/npm/transaction/payment-channel-fund.js.map +1 -0
- package/dist/npm/transaction/payment.d.ts +16 -0
- package/dist/npm/transaction/payment.d.ts.map +1 -0
- package/dist/npm/transaction/payment.js +163 -0
- package/dist/npm/transaction/payment.js.map +1 -0
- package/dist/npm/transaction/settings.d.ts +6 -0
- package/dist/npm/transaction/settings.d.ts.map +1 -0
- package/dist/npm/transaction/settings.js +130 -0
- package/dist/npm/transaction/settings.js.map +1 -0
- package/dist/npm/transaction/sign.d.ts +8 -0
- package/dist/npm/transaction/sign.d.ts.map +1 -0
- package/dist/npm/transaction/sign.js +173 -0
- package/dist/npm/transaction/sign.js.map +1 -0
- package/dist/npm/transaction/submit.d.ts +8 -0
- package/dist/npm/transaction/submit.d.ts.map +1 -0
- package/dist/npm/transaction/submit.js +59 -0
- package/dist/npm/transaction/submit.js.map +1 -0
- package/dist/npm/transaction/ticket.d.ts +9 -0
- package/dist/npm/transaction/ticket.d.ts.map +1 -0
- package/dist/npm/transaction/ticket.js +46 -0
- package/dist/npm/transaction/ticket.js.map +1 -0
- package/dist/npm/transaction/trustline.d.ts +6 -0
- package/dist/npm/transaction/trustline.d.ts.map +1 -0
- package/dist/npm/transaction/trustline.js +82 -0
- package/dist/npm/transaction/trustline.js.map +1 -0
- package/dist/npm/transaction/types.d.ts +138 -0
- package/dist/npm/transaction/types.d.ts.map +1 -0
- package/dist/npm/transaction/types.js +3 -0
- package/dist/npm/transaction/types.js.map +1 -0
- package/dist/npm/transaction/utils.d.ts +22 -0
- package/dist/npm/transaction/utils.d.ts.map +1 -0
- package/dist/npm/transaction/utils.js +285 -0
- package/dist/npm/transaction/utils.js.map +1 -0
- package/dist/npm/tsconfig.tsbuildinfo +4230 -0
- package/dist/npm/wallet/wallet-generation.d.ts +15 -0
- package/dist/npm/wallet/wallet-generation.d.ts.map +1 -0
- package/dist/npm/wallet/wallet-generation.js +150 -0
- package/dist/npm/wallet/wallet-generation.js.map +1 -0
- package/package.json +84 -0
@@ -0,0 +1,90 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "getLedger",
|
4
|
+
"type": "object",
|
5
|
+
"properties": {
|
6
|
+
"stateHash": {
|
7
|
+
"$ref": "hash256",
|
8
|
+
"description": "Hash of all state information in this ledger."
|
9
|
+
},
|
10
|
+
"closeTime": {
|
11
|
+
"type": "string",
|
12
|
+
"format": "date-time",
|
13
|
+
"description": "The approximate time when this ledger was closed. This number is rounded based on the `closeTimeResolution`. If it would have been rounded to the same time as a previous ledger, the close time is recorded as 1 second later instead."
|
14
|
+
},
|
15
|
+
"closeTimeResolution": {
|
16
|
+
"type": "integer",
|
17
|
+
"minimum": 1,
|
18
|
+
"description": "A number of seconds, indicating how much the `closeTime` could be rounded. Ledger close times are approximate so that small differences in servers clocks don't hinder consensus."
|
19
|
+
},
|
20
|
+
"closeFlags": {
|
21
|
+
"type": "integer",
|
22
|
+
"minimum": 0,
|
23
|
+
"description": "A bit-map of flags relating to the closing of this ledger. Currently, the ledger has only one flag defined for `closeFlags`: **sLCF_NoConsensusTime** (value 1). If this flag is enabled, it means that validators disagreed on the correct close time for the ledger, but built otherwise the same ledger, so they declared consensus while \"agreeing to disagree\" on the close time. In this case, the consensus ledger contains a `closeTime` value that is 1 second after that of the previous ledger. (In this case, there is no official close time, but the actual real-world close time is probably 3-6 seconds later than the specified `closeTime`.)"
|
24
|
+
},
|
25
|
+
"ledgerHash": {
|
26
|
+
"$ref": "hash256",
|
27
|
+
"description": "Unique identifying hash of the entire ledger."
|
28
|
+
},
|
29
|
+
"ledgerVersion": {
|
30
|
+
"$ref": "ledgerVersion",
|
31
|
+
"description": "The ledger version of this ledger."
|
32
|
+
},
|
33
|
+
"parentLedgerHash": {
|
34
|
+
"$ref": "hash256",
|
35
|
+
"description": "Unique identifying hash of the ledger that came immediately before this one."
|
36
|
+
},
|
37
|
+
"parentCloseTime": {
|
38
|
+
"type": "string",
|
39
|
+
"format": "date-time",
|
40
|
+
"description": "The previous ledger's recorded close time."
|
41
|
+
},
|
42
|
+
"totalDrops": {
|
43
|
+
"$ref": "value",
|
44
|
+
"description": "Total number of drops (1/1,000,000th of an XRP) in the network, as a quoted integer. (This decreases as transaction fees cause XRP to be destroyed.)"
|
45
|
+
},
|
46
|
+
"transactionHash": {
|
47
|
+
"$ref": "hash256",
|
48
|
+
"description": "Hash of the transaction information included in this ledger."
|
49
|
+
},
|
50
|
+
"transactions": {
|
51
|
+
"description": "Array of all transactions that were validated in this ledger. Transactions are represented in the same format as the return value of [getTransaction](#gettransaction).",
|
52
|
+
"type": "array",
|
53
|
+
"items": {
|
54
|
+
"$ref": "getTransaction",
|
55
|
+
"description": "A transaction in the same format as the return value of [getTransaction](#gettransaction)."
|
56
|
+
}
|
57
|
+
},
|
58
|
+
"transactionHashes": {
|
59
|
+
"description": "An array of hashes of all transactions that were validated in this ledger.",
|
60
|
+
"type": "array",
|
61
|
+
"items": {
|
62
|
+
"$ref": "transactionHash"
|
63
|
+
}
|
64
|
+
},
|
65
|
+
"rawState": {
|
66
|
+
"type": "string",
|
67
|
+
"description": "A JSON string containing all state data for this ledger in rippled JSON format."
|
68
|
+
},
|
69
|
+
"stateHashes": {
|
70
|
+
"description": "An array of hashes of all state data in this ledger.",
|
71
|
+
"type": "array",
|
72
|
+
"items": {
|
73
|
+
"$ref": "hash256"
|
74
|
+
}
|
75
|
+
}
|
76
|
+
},
|
77
|
+
"required": [
|
78
|
+
"stateHash",
|
79
|
+
"closeTime",
|
80
|
+
"closeTimeResolution",
|
81
|
+
"closeFlags",
|
82
|
+
"ledgerHash",
|
83
|
+
"ledgerVersion",
|
84
|
+
"parentLedgerHash",
|
85
|
+
"parentCloseTime",
|
86
|
+
"totalDrops",
|
87
|
+
"transactionHash"
|
88
|
+
],
|
89
|
+
"additionalProperties": false
|
90
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "getOrderbook",
|
4
|
+
"type": "object",
|
5
|
+
"properties": {
|
6
|
+
"bids": {
|
7
|
+
"$ref": "orderbookOrders",
|
8
|
+
"description": "The buy orders in the order book."
|
9
|
+
},
|
10
|
+
"asks": {
|
11
|
+
"$ref": "orderbookOrders",
|
12
|
+
"description": "The sell orders in the order book."
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"required": ["bids", "asks"],
|
16
|
+
"additionalProperties": false
|
17
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "getOrders",
|
4
|
+
"type": "array",
|
5
|
+
"items": {
|
6
|
+
"type": "object",
|
7
|
+
"properties": {
|
8
|
+
"specification": {
|
9
|
+
"$ref": "order",
|
10
|
+
"description": "An order specification that would create an order equivalent to the current state of this order."
|
11
|
+
},
|
12
|
+
"properties": {
|
13
|
+
"description": "Properties of the order not in the specification.",
|
14
|
+
"type": "object",
|
15
|
+
"properties": {
|
16
|
+
"maker": {
|
17
|
+
"$ref": "address",
|
18
|
+
"description": "The address of the account that submitted the order."
|
19
|
+
},
|
20
|
+
"sequence": {
|
21
|
+
"$ref": "sequence",
|
22
|
+
"description": "The account sequence number of the transaction that created this order."
|
23
|
+
},
|
24
|
+
"makerExchangeRate": {
|
25
|
+
"$ref": "value",
|
26
|
+
"description": "The exchange rate from the point of view of the account that submitted the order (also known as \"quality\")."
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"required": ["maker", "sequence", "makerExchangeRate"],
|
30
|
+
"addtionalProperties": false
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"required": ["specification", "properties"],
|
34
|
+
"additionalProperties": false
|
35
|
+
}
|
36
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "getPaths",
|
4
|
+
"type": "array",
|
5
|
+
"items": {
|
6
|
+
"type": "object",
|
7
|
+
"properties": {
|
8
|
+
"source": {
|
9
|
+
"$ref": "sourceAdjustment",
|
10
|
+
"description": "Properties of the source of the payment."
|
11
|
+
},
|
12
|
+
"destination": {
|
13
|
+
"$ref": "destinationAdjustment",
|
14
|
+
"description": "Properties of the destination of the payment."
|
15
|
+
},
|
16
|
+
"paths": {
|
17
|
+
"type": "string",
|
18
|
+
"description": "The paths of trustlines and orders to use in executing the payment."
|
19
|
+
}
|
20
|
+
},
|
21
|
+
"required": ["source", "destination", "paths"],
|
22
|
+
"additionalProperties": false
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "getPaymentChannel",
|
4
|
+
"type": "object",
|
5
|
+
"properties": {
|
6
|
+
"account": {
|
7
|
+
"$ref": "address",
|
8
|
+
"description": "Address that created the payment channel."
|
9
|
+
},
|
10
|
+
"destination": {
|
11
|
+
"$ref": "address",
|
12
|
+
"description": "Address to receive XRP claims against this channel."
|
13
|
+
},
|
14
|
+
"amount": {
|
15
|
+
"$ref": "value",
|
16
|
+
"description": "The total amount of XRP funded in this channel."
|
17
|
+
},
|
18
|
+
"balance": {
|
19
|
+
"$ref": "value",
|
20
|
+
"description": "The total amount of XRP delivered by this channel."
|
21
|
+
},
|
22
|
+
"settleDelay": {
|
23
|
+
"type": "number",
|
24
|
+
"description": "Amount of seconds the source address must wait before closing the channel if it has unclaimed XRP."
|
25
|
+
},
|
26
|
+
"expiration": {
|
27
|
+
"type": "string",
|
28
|
+
"format": "date-time",
|
29
|
+
"description": "Time when this channel expires."
|
30
|
+
},
|
31
|
+
"publicKey": {
|
32
|
+
"$ref": "publicKey",
|
33
|
+
"description": "Public key of the key pair the source uses to sign claims against this channel."
|
34
|
+
},
|
35
|
+
"cancelAfter": {
|
36
|
+
"type": "string",
|
37
|
+
"format": "date-time",
|
38
|
+
"description": "Time when this channel expires as specified at creation."
|
39
|
+
},
|
40
|
+
"sourceTag": {
|
41
|
+
"$ref": "tag",
|
42
|
+
"description": "Source tag."
|
43
|
+
},
|
44
|
+
"destinationTag": {
|
45
|
+
"$ref": "tag",
|
46
|
+
"description": "Destination tag."
|
47
|
+
},
|
48
|
+
"previousAffectingTransactionID": {
|
49
|
+
"$ref": "hash256",
|
50
|
+
"description": "Hash value representing the most recent transaction that affected this payment channel."
|
51
|
+
},
|
52
|
+
"previousAffectingTransactionLedgerVersion": {
|
53
|
+
"$ref": "ledgerVersion",
|
54
|
+
"description": "The ledger version that the transaction identified by the `previousAffectingTransactionID` was validated in."
|
55
|
+
}
|
56
|
+
},
|
57
|
+
"required": [
|
58
|
+
"account",
|
59
|
+
"destination",
|
60
|
+
"amount",
|
61
|
+
"balance",
|
62
|
+
"settleDelay",
|
63
|
+
"previousAffectingTransactionID",
|
64
|
+
"previousAffectingTransactionLedgerVersion"
|
65
|
+
],
|
66
|
+
"additionalProperties": false
|
67
|
+
}
|
@@ -0,0 +1,117 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "getServerInfo",
|
4
|
+
"type": "object",
|
5
|
+
"properties": {
|
6
|
+
"buildVersion": {
|
7
|
+
"type": "string",
|
8
|
+
"description": "The version number of the running rippled version."
|
9
|
+
},
|
10
|
+
"completeLedgers": {
|
11
|
+
"type": "string",
|
12
|
+
"pattern": "[0-9,-]+",
|
13
|
+
"description": "Range expression indicating the sequence numbers of the ledger versions the local rippled has in its database. It is possible to be a disjoint sequence, e.g. “2500-5000,32570-7695432”."
|
14
|
+
},
|
15
|
+
"hostID": {
|
16
|
+
"type": "string",
|
17
|
+
"description": "On an admin request, returns the hostname of the server running the rippled instance; otherwise, returns a unique four letter word."
|
18
|
+
},
|
19
|
+
"ioLatencyMs": {
|
20
|
+
"type": "number",
|
21
|
+
"description": "Amount of time spent waiting for I/O operations, in milliseconds. If this number is not very, very low, then the rippled server is probably having serious load issues."
|
22
|
+
},
|
23
|
+
"load": {
|
24
|
+
"type": "object",
|
25
|
+
"description": "*(Admin only)* Detailed information about the current load state of the server.",
|
26
|
+
"properties": {
|
27
|
+
"jobTypes": {
|
28
|
+
"type": "array",
|
29
|
+
"description": "*(Admin only)* Information about the rate of different types of jobs the server is doing and how much time it spends on each.",
|
30
|
+
"items": {"type": "object"}
|
31
|
+
},
|
32
|
+
"threads": {
|
33
|
+
"type": "number",
|
34
|
+
"description": "*(Admin only)* The number of threads in the server’s main job pool, performing various operations."
|
35
|
+
}
|
36
|
+
},
|
37
|
+
"required": ["jobTypes", "threads"]
|
38
|
+
},
|
39
|
+
"lastClose": {
|
40
|
+
"type": "object",
|
41
|
+
"description": "Information about the last time the server closed a ledger.",
|
42
|
+
"properties": {
|
43
|
+
"convergeTimeS": {
|
44
|
+
"type": "number",
|
45
|
+
"description": "The time it took to reach a consensus for the last ledger closing, in seconds."
|
46
|
+
},
|
47
|
+
"proposers": {
|
48
|
+
"type": "integer",
|
49
|
+
"minimum": 0,
|
50
|
+
"description": "Number of trusted validators participating in the ledger closing."}
|
51
|
+
},
|
52
|
+
"required": ["convergeTimeS", "proposers"]
|
53
|
+
},
|
54
|
+
"loadFactor": {
|
55
|
+
"type": "number",
|
56
|
+
"description": "The load factor the server is currently enforcing, as a multiplier on the base transaction fee. The load factor is determined by the highest of the individual server’s load factor, cluster’s load factor, and the overall network’s load factor."
|
57
|
+
},
|
58
|
+
"peers": {
|
59
|
+
"type": "integer",
|
60
|
+
"minimum": 0,
|
61
|
+
"description": "How many other rippled servers the node is currently connected to."
|
62
|
+
},
|
63
|
+
"pubkeyNode": {
|
64
|
+
"type": "string",
|
65
|
+
"description": "Public key used to verify this node for internal communications; this key is automatically generated by the server the first time it starts up."
|
66
|
+
},
|
67
|
+
"pubkeyValidator": {
|
68
|
+
"type": "string",
|
69
|
+
"description": "*(Admin only)* Public key used by this node to sign ledger validations."
|
70
|
+
},
|
71
|
+
"serverState": {
|
72
|
+
"type": "string",
|
73
|
+
"description": "A string indicating to what extent the server is participating in the network. See [Possible Server States](https://xrpl.org/rippled-server-states.html) for more details.",
|
74
|
+
"enum": ["disconnected", "connected", "syncing", "tracking", "full", "validating", "proposing"]
|
75
|
+
},
|
76
|
+
"validatedLedger": {
|
77
|
+
"type": "object",
|
78
|
+
"description": "Information about the fully-validated ledger with the highest sequence number (the most recent).",
|
79
|
+
"properties": {
|
80
|
+
"age": {
|
81
|
+
"type": "integer",
|
82
|
+
"minimum": 0,
|
83
|
+
"description": "The time since the ledger was closed, in seconds."
|
84
|
+
},
|
85
|
+
"baseFeeXRP": {
|
86
|
+
"$ref": "value",
|
87
|
+
"description": "Base fee, in XRP. This may be represented in scientific notation such as 1e-05 for 0.00005."
|
88
|
+
},
|
89
|
+
"hash": {
|
90
|
+
"$ref": "hash256",
|
91
|
+
"description": "Unique hash for the ledger, as an uppercase hexadecimal string."
|
92
|
+
},
|
93
|
+
"reserveBaseXRP": {
|
94
|
+
"$ref": "value",
|
95
|
+
"description": "Minimum amount of XRP necessary for every account to keep in reserve."
|
96
|
+
},
|
97
|
+
"reserveIncrementXRP": {
|
98
|
+
"$ref": "value",
|
99
|
+
"description": "Amount of XRP added to the account reserve for each object an account owns in the ledger."
|
100
|
+
},
|
101
|
+
"ledgerVersion": {
|
102
|
+
"type": "integer",
|
103
|
+
"minimum": 0,
|
104
|
+
"description": "Identifying ledger index of this ledger version."
|
105
|
+
}
|
106
|
+
},
|
107
|
+
"additionalProperties": false,
|
108
|
+
"required": ["age", "baseFeeXRP", "hash", "reserveBaseXRP", "reserveIncrementXRP", "ledgerVersion"]
|
109
|
+
},
|
110
|
+
"validationQuorum": {
|
111
|
+
"type": "number",
|
112
|
+
"description": "Minimum number of trusted validations required to validate a ledger version. Some circumstances may cause the server to require more validations."
|
113
|
+
}
|
114
|
+
},
|
115
|
+
"required": ["buildVersion", "completeLedgers", "hostID", "ioLatencyMs", "lastClose", "loadFactor", "peers", "pubkeyNode", "serverState", "validatedLedger", "validationQuorum"],
|
116
|
+
"additionalProperties": false
|
117
|
+
}
|
@@ -0,0 +1,237 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "getTransaction",
|
4
|
+
"description": "getTransaction response",
|
5
|
+
"link": "gettransaction",
|
6
|
+
"properties": {
|
7
|
+
"type": {
|
8
|
+
"$ref": "transactionType"
|
9
|
+
},
|
10
|
+
"specification": {
|
11
|
+
"description": "A specification that would produce the same outcome as this transaction. *Exception:* For payment transactions, this omits the `destination.amount` field, to prevent misunderstanding. The structure of the specification depends on the value of the `type` field (see [Transaction Types](#transaction-types) for details). *Note:* This is **not** necessarily the same as the original specification."
|
12
|
+
},
|
13
|
+
"outcome": {
|
14
|
+
"$ref": "outcome",
|
15
|
+
"description": "The outcome of the transaction (what effects it had)."
|
16
|
+
},
|
17
|
+
"id": {
|
18
|
+
"$ref": "transactionHash",
|
19
|
+
"description": "A hash of the transaction that can be used to identify it."
|
20
|
+
},
|
21
|
+
"address": {
|
22
|
+
"$ref": "address",
|
23
|
+
"description": "The address of the account that initiated the transaction."
|
24
|
+
},
|
25
|
+
"sequence": {
|
26
|
+
"$ref": "sequence",
|
27
|
+
"description": "The account sequence number of the transaction for the account that initiated it."
|
28
|
+
},
|
29
|
+
"rawTransaction": {
|
30
|
+
"description": "The raw transaction data as a JSON string. For advanced users only; exercise caution when interpreting this data.",
|
31
|
+
"type": "string"
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"required": [
|
35
|
+
"id",
|
36
|
+
"address",
|
37
|
+
"sequence",
|
38
|
+
"type",
|
39
|
+
"specification",
|
40
|
+
"outcome"
|
41
|
+
],
|
42
|
+
"additionalProperties": false,
|
43
|
+
"oneOf": [
|
44
|
+
{
|
45
|
+
"properties": {
|
46
|
+
"type": {
|
47
|
+
"enum": [
|
48
|
+
"payment"
|
49
|
+
]
|
50
|
+
},
|
51
|
+
"specification": {
|
52
|
+
"$ref": "getPayment"
|
53
|
+
}
|
54
|
+
}
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"properties": {
|
58
|
+
"type": {
|
59
|
+
"enum": [
|
60
|
+
"order"
|
61
|
+
]
|
62
|
+
},
|
63
|
+
"specification": {
|
64
|
+
"$ref": "order"
|
65
|
+
}
|
66
|
+
}
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"properties": {
|
70
|
+
"type": {
|
71
|
+
"enum": [
|
72
|
+
"orderCancellation"
|
73
|
+
]
|
74
|
+
},
|
75
|
+
"specification": {
|
76
|
+
"$ref": "orderCancellation"
|
77
|
+
}
|
78
|
+
}
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"properties": {
|
82
|
+
"type": {
|
83
|
+
"enum": [
|
84
|
+
"trustline"
|
85
|
+
]
|
86
|
+
},
|
87
|
+
"specification": {
|
88
|
+
"$ref": "trustline"
|
89
|
+
}
|
90
|
+
}
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"properties": {
|
94
|
+
"type": {
|
95
|
+
"enum": [
|
96
|
+
"settings"
|
97
|
+
]
|
98
|
+
},
|
99
|
+
"specification": {
|
100
|
+
"$ref": "getSettings"
|
101
|
+
}
|
102
|
+
}
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"properties": {
|
106
|
+
"type": {
|
107
|
+
"enum": [
|
108
|
+
"checkCreate"
|
109
|
+
]
|
110
|
+
},
|
111
|
+
"specification": {
|
112
|
+
"$ref": "checkCreate"
|
113
|
+
}
|
114
|
+
}
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"properties": {
|
118
|
+
"type": {
|
119
|
+
"enum": [
|
120
|
+
"checkCancel"
|
121
|
+
]
|
122
|
+
},
|
123
|
+
"specification": {
|
124
|
+
"$ref": "checkCancel"
|
125
|
+
}
|
126
|
+
}
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"properties": {
|
130
|
+
"type": {
|
131
|
+
"enum": [
|
132
|
+
"checkCash"
|
133
|
+
]
|
134
|
+
},
|
135
|
+
"specification": {
|
136
|
+
"$ref": "checkCash"
|
137
|
+
}
|
138
|
+
}
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"properties": {
|
142
|
+
"type": {
|
143
|
+
"enum": [
|
144
|
+
"escrowCreation"
|
145
|
+
]
|
146
|
+
},
|
147
|
+
"specification": {
|
148
|
+
"$ref": "escrowCreation"
|
149
|
+
}
|
150
|
+
}
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"properties": {
|
154
|
+
"type": {
|
155
|
+
"enum": [
|
156
|
+
"escrowCancellation"
|
157
|
+
]
|
158
|
+
},
|
159
|
+
"specification": {
|
160
|
+
"$ref": "escrowCancellation"
|
161
|
+
}
|
162
|
+
}
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"properties": {
|
166
|
+
"type": {
|
167
|
+
"enum": [
|
168
|
+
"escrowExecution"
|
169
|
+
]
|
170
|
+
},
|
171
|
+
"specification": {
|
172
|
+
"$ref": "escrowExecution"
|
173
|
+
}
|
174
|
+
}
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"properties": {
|
178
|
+
"type": {
|
179
|
+
"enum": [
|
180
|
+
"paymentChannelCreate"
|
181
|
+
]
|
182
|
+
},
|
183
|
+
"specification": {
|
184
|
+
"$ref": "paymentChannelCreate"
|
185
|
+
}
|
186
|
+
}
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"properties": {
|
190
|
+
"type": {
|
191
|
+
"enum": [
|
192
|
+
"paymentChannelFund"
|
193
|
+
]
|
194
|
+
},
|
195
|
+
"specification": {
|
196
|
+
"$ref": "paymentChannelFund"
|
197
|
+
}
|
198
|
+
}
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"properties": {
|
202
|
+
"type": {
|
203
|
+
"enum": [
|
204
|
+
"paymentChannelClaim"
|
205
|
+
]
|
206
|
+
},
|
207
|
+
"specification": {
|
208
|
+
"$ref": "paymentChannelClaim"
|
209
|
+
}
|
210
|
+
}
|
211
|
+
},
|
212
|
+
{
|
213
|
+
"properties": {
|
214
|
+
"type": {
|
215
|
+
"enum": [
|
216
|
+
"depositPreauth"
|
217
|
+
]
|
218
|
+
},
|
219
|
+
"specification": {
|
220
|
+
"$ref": "depositPreauth"
|
221
|
+
}
|
222
|
+
}
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"properties": {
|
226
|
+
"type": {
|
227
|
+
"enum": [
|
228
|
+
"accountDelete"
|
229
|
+
]
|
230
|
+
},
|
231
|
+
"specification": {
|
232
|
+
"$ref": "accountDelete"
|
233
|
+
}
|
234
|
+
}
|
235
|
+
}
|
236
|
+
]
|
237
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "getTrustlines",
|
4
|
+
"type": "array",
|
5
|
+
"items": {
|
6
|
+
"properties": {
|
7
|
+
"specification": {
|
8
|
+
"$ref": "trustline",
|
9
|
+
"description": "A trust line specification that would produce this trust line in its current state."
|
10
|
+
},
|
11
|
+
"counterparty": {
|
12
|
+
"properties": {
|
13
|
+
"limit": {
|
14
|
+
"$ref": "value",
|
15
|
+
"description": "The maximum amount that the counterparty can be owed through the trust line."
|
16
|
+
},
|
17
|
+
"ripplingDisabled": {
|
18
|
+
"type": "boolean",
|
19
|
+
"description": "If true, payments cannot ripple through this trustline."
|
20
|
+
},
|
21
|
+
"frozen": {
|
22
|
+
"type": "boolean",
|
23
|
+
"description": "If true, the trust line is frozen, which means that funds can only be sent directly to the counterparty."
|
24
|
+
},
|
25
|
+
"authorized": {
|
26
|
+
"type": "boolean",
|
27
|
+
"description": "If true, the counterparty authorizes this party to hold issuances from the counterparty."
|
28
|
+
}
|
29
|
+
},
|
30
|
+
"description": "Properties of the trustline from the perspective of the counterparty.",
|
31
|
+
"required": ["limit"],
|
32
|
+
"additionalProperties": false
|
33
|
+
},
|
34
|
+
"state": {
|
35
|
+
"properties": {
|
36
|
+
"balance": {
|
37
|
+
"$ref": "signedValue",
|
38
|
+
"description": "The balance on the trust line, representing which party owes the other and by how much."
|
39
|
+
}
|
40
|
+
},
|
41
|
+
"description": "Non-settings details of the trust line's state.",
|
42
|
+
"required": ["balance"],
|
43
|
+
"additionalProperties": false
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"required": ["specification", "counterparty", "state"],
|
47
|
+
"additionalProperties": false
|
48
|
+
}
|
49
|
+
}
|