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,46 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "ledgerEvent",
|
4
|
+
"description": "A ledger event message",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"baseFeeXRP": {
|
8
|
+
"$ref": "value",
|
9
|
+
"description": "Base fee, in XRP."
|
10
|
+
},
|
11
|
+
"ledgerHash": {
|
12
|
+
"$ref": "hash256",
|
13
|
+
"description": "Unique hash of the ledger that was closed, as hex."
|
14
|
+
},
|
15
|
+
"ledgerVersion": {
|
16
|
+
"$ref": "ledgerVersion",
|
17
|
+
"description": "Ledger version of the ledger that closed."
|
18
|
+
},
|
19
|
+
"ledgerTimestamp": {
|
20
|
+
"type": "string",
|
21
|
+
"format": "date-time",
|
22
|
+
"description": "The time at which this ledger closed."
|
23
|
+
},
|
24
|
+
"reserveBaseXRP": {
|
25
|
+
"$ref": "value",
|
26
|
+
"description": "The minimum reserve, in XRP, that is required for an account."
|
27
|
+
},
|
28
|
+
"reserveIncrementXRP": {
|
29
|
+
"$ref": "value",
|
30
|
+
"description": "The increase in account reserve that is added for each item the account owns, such as offers or trust lines."
|
31
|
+
},
|
32
|
+
"transactionCount": {
|
33
|
+
"type": "integer",
|
34
|
+
"minimum": 0,
|
35
|
+
"description": "Number of new transactions included in this ledger."
|
36
|
+
},
|
37
|
+
"validatedLedgerVersions": {
|
38
|
+
"type": "string",
|
39
|
+
"description": "Range of ledgers that the server has available. This may be discontiguous."
|
40
|
+
}
|
41
|
+
},
|
42
|
+
"addtionalProperties": false,
|
43
|
+
"required": ["baseFeeXRP", "ledgerHash", "ledgerTimestamp",
|
44
|
+
"reserveBaseXRP", "reserveIncrementXRP", "transactionCount",
|
45
|
+
"ledgerVersion", "validatedLedgerVersions"]
|
46
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "orderChange",
|
4
|
+
"type": "object",
|
5
|
+
"description": "A change to an order.",
|
6
|
+
"properties": {
|
7
|
+
"direction": {
|
8
|
+
"type": "string",
|
9
|
+
"enum": ["buy", "sell"],
|
10
|
+
"description": "Equal to \"buy\" for buy orders and \"sell\" for sell orders."
|
11
|
+
},
|
12
|
+
"quantity": {
|
13
|
+
"$ref": "amount",
|
14
|
+
"description": "The amount to be bought or sold by the maker."
|
15
|
+
},
|
16
|
+
"totalPrice": {
|
17
|
+
"$ref": "amount",
|
18
|
+
"description": "The total amount to be paid or received by the taker."
|
19
|
+
},
|
20
|
+
"makerExchangeRate": {
|
21
|
+
"$ref": "value",
|
22
|
+
"description": "The exchange rate between the `quantity` currency and the `totalPrice` currency from the point of view of the maker."
|
23
|
+
},
|
24
|
+
"sequence": {
|
25
|
+
"$ref": "sequence",
|
26
|
+
"description": "The order sequence number, used to identify the order for cancellation"
|
27
|
+
},
|
28
|
+
"status": {
|
29
|
+
"enum": ["created", "filled", "partially-filled", "cancelled"],
|
30
|
+
"description": "The status of the order. One of \"created\", \"filled\", \"partially-filled\", \"cancelled\"."
|
31
|
+
},
|
32
|
+
"expirationTime": {
|
33
|
+
"type": "string",
|
34
|
+
"format": "date-time",
|
35
|
+
"description": "The time after which the order expires, if any."
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"required": ["direction", "quantity", "totalPrice", "sequence", "status"],
|
39
|
+
"additionalProperties": false
|
40
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "orderbookOrders",
|
4
|
+
"type": "array",
|
5
|
+
"items": {
|
6
|
+
"description": "An order in the order book.",
|
7
|
+
"type": "object",
|
8
|
+
"properties": {
|
9
|
+
"specification": {
|
10
|
+
"$ref": "order",
|
11
|
+
"description": "An order specification that would create an order equivalent to the current state of this order."
|
12
|
+
},
|
13
|
+
"properties": {
|
14
|
+
"description": "Properties of the order not in the specification.",
|
15
|
+
"type": "object",
|
16
|
+
"properties": {
|
17
|
+
"maker": {
|
18
|
+
"$ref": "address",
|
19
|
+
"description": "The address of the account that submitted the order."
|
20
|
+
},
|
21
|
+
"sequence": {
|
22
|
+
"$ref": "sequence",
|
23
|
+
"description": "The account sequence number of the transaction that created this order."
|
24
|
+
},
|
25
|
+
"makerExchangeRate": {
|
26
|
+
"$ref": "value",
|
27
|
+
"description": "The exchange rate from the point of view of the account that submitted the order (also known as \"quality\")."
|
28
|
+
}
|
29
|
+
},
|
30
|
+
"required": ["maker", "sequence", "makerExchangeRate"],
|
31
|
+
"addtionalProperties": false
|
32
|
+
},
|
33
|
+
"state": {
|
34
|
+
"description": "The state of the order.",
|
35
|
+
"type": "object",
|
36
|
+
"properties": {
|
37
|
+
"fundedAmount": {
|
38
|
+
"$ref": "amount",
|
39
|
+
"description": "How much of the amount the maker would have to pay that the maker currently holds."
|
40
|
+
},
|
41
|
+
"priceOfFundedAmount": {
|
42
|
+
"$ref": "amount",
|
43
|
+
"description": "How much the `fundedAmount` would convert to through the exchange rate of this order."
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"required": ["fundedAmount", "priceOfFundedAmount"],
|
47
|
+
"additionalProperties": false
|
48
|
+
},
|
49
|
+
"data": {
|
50
|
+
"description": "The raw order data. This may include `owner_funds`, `Flags`, and other fields.",
|
51
|
+
"type": "object",
|
52
|
+
"additionalProperties": true
|
53
|
+
}
|
54
|
+
},
|
55
|
+
"required": ["specification", "properties", "data"],
|
56
|
+
"additionalProperties": false
|
57
|
+
}
|
58
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "outcome",
|
4
|
+
"type": "object",
|
5
|
+
"description": "The outcome of the transaction (what effects it had).",
|
6
|
+
"properties": {
|
7
|
+
"result": {
|
8
|
+
"type": "string",
|
9
|
+
"description": "Result code returned by rippled. See [Transaction Results](https://xrpl.org/transaction-results.html) for a complete list."
|
10
|
+
},
|
11
|
+
"timestamp": {
|
12
|
+
"type": "string",
|
13
|
+
"format": "date-time",
|
14
|
+
"description": "The timestamp when the transaction was validated. (May be missing when requesting transactions in binary mode.)"
|
15
|
+
},
|
16
|
+
"fee": {
|
17
|
+
"$ref": "value",
|
18
|
+
"description": "The XRP fee that was charged for the transaction."
|
19
|
+
},
|
20
|
+
"deliveredAmount": {
|
21
|
+
"$ref": "amount",
|
22
|
+
"description": "For payment transactions, it is impossible to reliably compute the actual delivered amount from the balanceChanges due to fixed precision. If the payment is not a partial payment and the transaction succeeded, the deliveredAmount should always be considered to be the amount specified in the transaction."
|
23
|
+
},
|
24
|
+
"balanceChanges": {
|
25
|
+
"type": "object",
|
26
|
+
"additionalProperties": {
|
27
|
+
"type": "array",
|
28
|
+
"description": "Key is the XRP Ledger address; value is an array of signed amounts representing changes of balances for that address.",
|
29
|
+
"items": {"$ref": "balance"}
|
30
|
+
}
|
31
|
+
},
|
32
|
+
"orderbookChanges": {
|
33
|
+
"type": "object",
|
34
|
+
"additionalProperties": {
|
35
|
+
"type": "array",
|
36
|
+
"description": "Key is the maker's XRP Ledger address; value is an array of changes",
|
37
|
+
"items": {"$ref": "orderChange"}
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"channelChanges": {
|
41
|
+
"type": "object",
|
42
|
+
"description": "Properties reflecting the details of the payment channel."
|
43
|
+
},
|
44
|
+
"ledgerVersion": {
|
45
|
+
"$ref": "ledgerVersion",
|
46
|
+
"description": "The ledger version that the transaction was validated in."
|
47
|
+
},
|
48
|
+
"indexInLedger": {
|
49
|
+
"type": "integer",
|
50
|
+
"minimum": 0,
|
51
|
+
"description": "The ordering index of the transaction in the ledger."
|
52
|
+
}
|
53
|
+
},
|
54
|
+
"required": ["result", "fee", "balanceChanges",
|
55
|
+
"orderbookChanges", "ledgerVersion", "indexInLedger"],
|
56
|
+
"additionalProperties": false
|
57
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "prepare",
|
4
|
+
"description": "Result of prepare function",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"txJSON": {
|
8
|
+
"type": "string",
|
9
|
+
"description": "The prepared transaction in rippled JSON format."
|
10
|
+
},
|
11
|
+
"instructions": {
|
12
|
+
"description": "The instructions for how to execute the transaction after adding automatic defaults.",
|
13
|
+
"type": "object",
|
14
|
+
"properties": {
|
15
|
+
"fee": {
|
16
|
+
"$ref": "value",
|
17
|
+
"description": "The fee to pay for the transaction. See [Transaction Fees](#transaction-fees) for more information. For multi-signed transactions, this fee is multiplied by (N+1), where N is the number of signatures you plan to provide."
|
18
|
+
},
|
19
|
+
"sequence": {
|
20
|
+
"$ref": "sequence",
|
21
|
+
"description": "The initiating account's sequence number for this transaction. `sequence` and `ticketSequence` are mutually exclusive, only one of them can be set."
|
22
|
+
},
|
23
|
+
"ticketSequence": {
|
24
|
+
"$ref": "ticket-sequence",
|
25
|
+
"description": "The initiating account's ticket sequence number for this transaction. `sequence` and `ticketSequence` are mutually exclusive, only one of them can be set."
|
26
|
+
},
|
27
|
+
"maxLedgerVersion": {
|
28
|
+
"oneOf": [
|
29
|
+
{"$ref": "ledgerVersion"},
|
30
|
+
{"type": "null"}
|
31
|
+
],
|
32
|
+
"description": "The highest ledger version that the transaction can be included in. Set to `null` if there is no maximum. If not null, this must be an integer greater than 0, or one of the following strings: 'validated', 'closed', 'current'."
|
33
|
+
}
|
34
|
+
},
|
35
|
+
"additionalProperties": false,
|
36
|
+
"required": ["fee", "maxLedgerVersion"],
|
37
|
+
"anyOf": [
|
38
|
+
{ "required":
|
39
|
+
[ "sequence" ] },
|
40
|
+
{ "required":
|
41
|
+
[ "ticketSequence" ] }
|
42
|
+
]
|
43
|
+
}
|
44
|
+
},
|
45
|
+
"additionalProperties": false,
|
46
|
+
"required": ["txJSON", "instructions"]
|
47
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "sign",
|
4
|
+
"type": "object",
|
5
|
+
"properties": {
|
6
|
+
"signedTransaction": {
|
7
|
+
"type": "string",
|
8
|
+
"pattern": "^[A-F0-9]+$",
|
9
|
+
"description": "The signed transaction represented as an uppercase hexadecimal string."
|
10
|
+
},
|
11
|
+
"id": {
|
12
|
+
"$ref": "transactionHash",
|
13
|
+
"description": "The [Transaction ID](#transaction-id) of the signed transaction."
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"required": ["signedTransaction", "id"],
|
17
|
+
"additionalProperties": false
|
18
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "submit",
|
4
|
+
"type": "object",
|
5
|
+
"properties": {
|
6
|
+
"resultCode": {
|
7
|
+
"type": "string",
|
8
|
+
"description": "Deprecated: Use `engine_result` instead."
|
9
|
+
},
|
10
|
+
"resultMessage": {
|
11
|
+
"type": "string",
|
12
|
+
"description": "Deprecated: Use `engine_result_message` instead."
|
13
|
+
},
|
14
|
+
"engine_result": {
|
15
|
+
"type": "string",
|
16
|
+
"description": "Code indicating the preliminary result of the transaction, for example `tesSUCCESS`. [List of transaction responses](https://xrpl.org/transaction-results.html)"
|
17
|
+
},
|
18
|
+
"engine_result_code": {
|
19
|
+
"type": "integer",
|
20
|
+
"description": "Numeric code indicating the preliminary result of the transaction, directly correlated to `engine_result`"
|
21
|
+
},
|
22
|
+
"engine_result_message": {
|
23
|
+
"type": "string",
|
24
|
+
"description": "Human-readable explanation of the transaction's preliminary result."
|
25
|
+
},
|
26
|
+
"tx_blob": {
|
27
|
+
"type": "string",
|
28
|
+
"description": "The complete transaction in hex string format."
|
29
|
+
},
|
30
|
+
"tx_json": {
|
31
|
+
"$ref": "tx-json",
|
32
|
+
"description": "The complete transaction in JSON format."
|
33
|
+
}
|
34
|
+
},
|
35
|
+
"required": ["resultCode", "resultMessage", "engine_result", "engine_result_code", "engine_result_message", "tx_blob", "tx_json"],
|
36
|
+
"additionalProperties": false
|
37
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "accountDelete",
|
4
|
+
"link": "account-delete",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"destination": {
|
8
|
+
"$ref": "address",
|
9
|
+
"description": "Address of an account to receive any leftover XRP after deleting the sending account. Must be a funded account in the ledger, and must not be the sending account."
|
10
|
+
},
|
11
|
+
"destinationTag": {
|
12
|
+
"$ref": "tag",
|
13
|
+
"description": "(Optional) Arbitrary destination tag that identifies a hosted recipient or other information for the recipient of the deleted account's leftover XRP."
|
14
|
+
},
|
15
|
+
"destinationXAddress": {
|
16
|
+
"$ref": "address",
|
17
|
+
"description": "X-address of an account to receive any leftover XRP after deleting the sending account. Must be a funded account in the ledger, and must not be the sending account."
|
18
|
+
},
|
19
|
+
"memos": {"$ref": "memos"}
|
20
|
+
},
|
21
|
+
"anyOf": [
|
22
|
+
{
|
23
|
+
"required": ["destination"]
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"required": ["destinationXAddress"]
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"additionalProperties": false
|
30
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "checkCancel",
|
4
|
+
"link": "check-cancel",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"checkID": {
|
8
|
+
"$ref": "hash256",
|
9
|
+
"description": "The ID of the Check ledger object to cancel, as a 64-character hexadecimal string."
|
10
|
+
},
|
11
|
+
"memos": {"$ref": "memos"}
|
12
|
+
},
|
13
|
+
"required": ["checkID"],
|
14
|
+
"additionalProperties": false
|
15
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "checkCash",
|
4
|
+
"link": "check-cash",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"checkID": {
|
8
|
+
"$ref": "hash256",
|
9
|
+
"description": "The ID of the Check ledger object to cash, as a 64-character hexadecimal string."
|
10
|
+
},
|
11
|
+
"amount": {
|
12
|
+
"$ref": "laxAmount",
|
13
|
+
"description": "Redeem the Check for exactly this amount, if possible. The currency must match that of the sendMax of the corresponding CheckCreate transaction. You must provide either this field or deliverMin."
|
14
|
+
},
|
15
|
+
"deliverMin": {
|
16
|
+
"$ref": "laxAmount",
|
17
|
+
"description": "Redeem the Check for at least this amount and for as much as possible. The currency must match that of the sendMax of the corresponding CheckCreate transaction. You must provide either this field or amount."
|
18
|
+
},
|
19
|
+
"memos": {"$ref": "memos"}
|
20
|
+
},
|
21
|
+
"required": ["checkID"],
|
22
|
+
"oneOf": [
|
23
|
+
{"required": ["amount"]},
|
24
|
+
{"required": ["deliverMin"]}
|
25
|
+
],
|
26
|
+
"additionalProperties": false
|
27
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "checkCreate",
|
4
|
+
"link": "check-create",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"destination": {
|
8
|
+
"$ref": "address",
|
9
|
+
"description": "Address of the account that can cash the check."
|
10
|
+
},
|
11
|
+
"sendMax": {
|
12
|
+
"$ref": "laxAmount",
|
13
|
+
"description": "Amount of source currency the check is allowed to debit the sender, including transfer fees on non-XRP currencies."
|
14
|
+
},
|
15
|
+
"destinationTag": {
|
16
|
+
"$ref": "tag",
|
17
|
+
"description": "Destination tag that identifies the reason for the check, or a hosted recipient to pay."
|
18
|
+
},
|
19
|
+
"expiration": {
|
20
|
+
"type": "string",
|
21
|
+
"format": "date-time",
|
22
|
+
"description": "Time after which the check is no longer valid."
|
23
|
+
},
|
24
|
+
"invoiceID": {
|
25
|
+
"$ref": "hash256",
|
26
|
+
"description": "256-bit hash, as a 64-character hexadecimal string, representing a specific reason or identifier for this check."
|
27
|
+
},
|
28
|
+
"memos": {"$ref": "memos"}
|
29
|
+
},
|
30
|
+
"required": ["destination", "sendMax"],
|
31
|
+
"additionalProperties": false
|
32
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "depositPreauth",
|
4
|
+
"link": "deposit-preauth",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"authorize": {
|
8
|
+
"$ref": "address",
|
9
|
+
"description": "Address of the account that can cash the check."
|
10
|
+
},
|
11
|
+
"unauthorize": {
|
12
|
+
"$ref": "address",
|
13
|
+
"description": "Address of the account that can cash the check."
|
14
|
+
},
|
15
|
+
"memos": {"$ref": "memos"}
|
16
|
+
},
|
17
|
+
"oneOf": [
|
18
|
+
{"required": ["authorize"]},
|
19
|
+
{"required": ["unauthorize"]}
|
20
|
+
],
|
21
|
+
"additionalProperties": false
|
22
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "escrowCancellation",
|
4
|
+
"link": "escrow-cancellation",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"memos": {"$ref": "memos"},
|
8
|
+
"owner": {
|
9
|
+
"$ref": "address",
|
10
|
+
"description": "The address of the owner of the escrow to cancel."
|
11
|
+
},
|
12
|
+
"escrowSequence": {
|
13
|
+
"$ref": "sequence",
|
14
|
+
"description": "The [account sequence number](#account-sequence-number) of the [Escrow Creation](#escrow-creation) transaction for the escrow to cancel."
|
15
|
+
}
|
16
|
+
},
|
17
|
+
"required": ["owner", "escrowSequence"],
|
18
|
+
"additionalProperties": false
|
19
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "escrowCreation",
|
4
|
+
"link": "escrow-creation",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"amount": {
|
8
|
+
"$ref": "value",
|
9
|
+
"description": "Amount of XRP for sender to escrow."
|
10
|
+
},
|
11
|
+
"destination": {
|
12
|
+
"$ref": "address",
|
13
|
+
"description": "Address to receive escrowed XRP."
|
14
|
+
},
|
15
|
+
"memos": {"$ref": "memos"},
|
16
|
+
"condition": {
|
17
|
+
"type": "string",
|
18
|
+
"description": "A hex value representing a [PREIMAGE-SHA-256 crypto-condition](https://tools.ietf.org/html/draft-thomas-crypto-conditions-02#section-8.1). If present, `fulfillment` is required upon execution.",
|
19
|
+
"pattern": "^[A-F0-9]{0,256}$"
|
20
|
+
},
|
21
|
+
"allowCancelAfter": {
|
22
|
+
"type": "string",
|
23
|
+
"format": "date-time",
|
24
|
+
"description": "If present, the escrow may be cancelled after this time."
|
25
|
+
},
|
26
|
+
"allowExecuteAfter": {
|
27
|
+
"type": "string",
|
28
|
+
"format": "date-time",
|
29
|
+
"description": "If present, the escrow can not be executed before this time."
|
30
|
+
},
|
31
|
+
"sourceTag": {
|
32
|
+
"$ref": "tag",
|
33
|
+
"description": "Source tag."
|
34
|
+
},
|
35
|
+
"destinationTag": {
|
36
|
+
"$ref": "tag",
|
37
|
+
"description": "Destination tag."
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"required": ["amount", "destination"],
|
41
|
+
"additionalProperties": false
|
42
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "escrowExecution",
|
4
|
+
"link": "escrow-execution",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"memos": {"$ref": "memos"},
|
8
|
+
"owner": {
|
9
|
+
"$ref": "address",
|
10
|
+
"description": "The address of the owner of the escrow to execute."
|
11
|
+
},
|
12
|
+
"escrowSequence": {
|
13
|
+
"$ref": "sequence",
|
14
|
+
"description": "The [account sequence number](#account-sequence-number) of the [Escrow Creation](#escrow-creation) transaction for the escrow to execute."
|
15
|
+
},
|
16
|
+
"condition": {
|
17
|
+
"type": "string",
|
18
|
+
"description": "A hex value representing a [PREIMAGE-SHA-256 crypto-condition](https://tools.ietf.org/html/draft-thomas-crypto-conditions-02#section-8.1). This must match the original `condition` from the escrow creation transaction.",
|
19
|
+
"pattern": "^[A-F0-9]{0,256}$"
|
20
|
+
},
|
21
|
+
"fulfillment": {
|
22
|
+
"type": "string",
|
23
|
+
"description": "A hex value representing the [PREIMAGE-SHA-256 crypto-condition](https://tools.ietf.org/html/draft-thomas-crypto-conditions-02#section-8.1) fulfillment for `condition`.",
|
24
|
+
"pattern": "^[A-F0-9]+$"
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"required": ["owner", "escrowSequence"],
|
28
|
+
"additionalProperties": false
|
29
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "getPayment",
|
4
|
+
"description": "A specification of a payment in a response for getTransaction or getTransactions.",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"source": {
|
8
|
+
"$ref": "sourceAdjustment",
|
9
|
+
"description": "The source of the funds to be sent."
|
10
|
+
},
|
11
|
+
"destination": {
|
12
|
+
"$ref": "destinationAddressTag",
|
13
|
+
"description": "The destination of the funds to be sent. Since this is a payment response, the amount is not shown here. For the amount that the transaction delivered, see `outcome.deliveredAmount`."
|
14
|
+
},
|
15
|
+
"paths": {
|
16
|
+
"type": "string",
|
17
|
+
"description": "The paths of trustlines and orders to use in executing the payment."
|
18
|
+
},
|
19
|
+
"memos": {"$ref": "memos"},
|
20
|
+
"invoiceID": {
|
21
|
+
"description": "A 256-bit hash that can be used to identify a particular payment.",
|
22
|
+
"$ref": "hash256"
|
23
|
+
},
|
24
|
+
"allowPartialPayment": {
|
25
|
+
"description": "If true, this payment can deliver less than the full amount.",
|
26
|
+
"type": "boolean"
|
27
|
+
},
|
28
|
+
"noDirectRipple": {
|
29
|
+
"description": "If true and paths are specified, the sender would like the XRP Ledger to disregard any direct paths from the source account to the destination account. This may be used to take advantage of an arbitrage opportunity or by gateways wishing to issue balances from a hot wallet to a user who has mistakenly set a trustline directly to the hot wallet.",
|
30
|
+
"type": "boolean"
|
31
|
+
},
|
32
|
+
"limitQuality": {
|
33
|
+
"description": "Only take paths where all the conversions have an input:output ratio that is equal or better than the ratio of destination.amount:source.maxAmount.",
|
34
|
+
"type": "boolean"
|
35
|
+
}
|
36
|
+
},
|
37
|
+
"required": ["source", "destination"],
|
38
|
+
"additionalProperties": false
|
39
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "orderCancellation",
|
4
|
+
"link": "order-cancellation",
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"orderSequence": {
|
8
|
+
"$ref": "sequence",
|
9
|
+
"description": "The [account sequence number](#account-sequence-number) of the order to cancel."
|
10
|
+
},
|
11
|
+
"memos": {"$ref": "memos"}
|
12
|
+
},
|
13
|
+
"required": ["orderSequence"],
|
14
|
+
"additionalProperties": false
|
15
|
+
}
|