mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-27 07:35:52 +00:00
Update docs
This commit is contained in:
@@ -767,7 +767,7 @@ When using rippled APIs, [specify XRP amounts in drops](https://ripple.com/build
|
|||||||
|
|
||||||
## Listening to streams
|
## Listening to streams
|
||||||
|
|
||||||
The `rippled` server can push updates to your client when various events happen. Refer to [Subscriptions in the `rippled` API docs](https://ripple.com/build/rippled-apis/#subscriptions) for details.
|
The `rippled` server can push updates to your client when various events happen. Refer to [Subscriptions in the `rippled` API docs](https://developers.ripple.com/subscription-methods.html) for details.
|
||||||
|
|
||||||
Note that the `streams` parameter for generic streams takes an array. For example, to subscribe to the `validations` stream, use `{ streams: [ 'validations' ] }`.
|
Note that the `streams` parameter for generic streams takes an array. For example, to subscribe to the `validations` stream, use `{ streams: [ 'validations' ] }`.
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ When using rippled APIs, [specify XRP amounts in drops](https://ripple.com/build
|
|||||||
|
|
||||||
## Listening to streams
|
## Listening to streams
|
||||||
|
|
||||||
The `rippled` server can push updates to your client when various events happen. Refer to [Subscriptions in the `rippled` API docs](https://ripple.com/build/rippled-apis/#subscriptions) for details.
|
The `rippled` server can push updates to your client when various events happen. Refer to [Subscriptions in the `rippled` API docs](https://developers.ripple.com/subscription-methods.html) for details.
|
||||||
|
|
||||||
Note that the `streams` parameter for generic streams takes an array. For example, to subscribe to the `validations` stream, use `{ streams: [ 'validations' ] }`.
|
Note that the `streams` parameter for generic streams takes an array. For example, to subscribe to the `validations` stream, use `{ streams: [ 'validations' ] }`.
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ function removeGenericCounterparty(amount, address) {
|
|||||||
_.omit(amount, 'counterparty') : amount
|
_.omit(amount, 'counterparty') : amount
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Payment specification
|
||||||
function parsePayment(tx: any): Object {
|
function parsePayment(tx: any): Object {
|
||||||
assert(tx.TransactionType === 'Payment')
|
assert(tx.TransactionType === 'Payment')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user