mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-06-07 18:56:40 +00:00
* Update schema-validator * Update to ripple-address-codec 4.0.0 * Update ./src/common/hashes/index.ts * Add generateXAddress method * Deprecate generateAddress method * Add unit tests * Add documentation
24 lines
479 B
Plaintext
24 lines
479 B
Plaintext
## generateXAddress
|
|
|
|
`generateXAddress(options?: object): {address: string, secret: string}`
|
|
|
|
Generate a new XRP Ledger address and corresponding secret.
|
|
|
|
### Parameters
|
|
|
|
<%- renderSchema('input/generate-x-address.json') %>
|
|
|
|
### Return Value
|
|
|
|
This method returns an object with the following structure:
|
|
|
|
<%- renderSchema('output/generate-x-address.json') %>
|
|
|
|
### Example
|
|
|
|
```javascript
|
|
return api.generateAddress();
|
|
```
|
|
|
|
<%- renderFixture('responses/generate-x-address.json') %>
|