mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-02 23:15:36 +02:00
mobile/README: explain new API objects for sub-servers in LND v0.15+
This commit is contained in:
@@ -227,19 +227,11 @@ implementation project(":lndmobile", { "default" })
|
|||||||
```
|
```
|
||||||
---
|
---
|
||||||
|
|
||||||
## Options
|
## Calling the API
|
||||||
|
|
||||||
Similar to lnd, subservers can be conditionally compiled with the build by setting the tags argument:
|
In LND v0.15+ all API methods have prefixed the generated methods with the subserver name. This is required to support subservers with name conflicts.
|
||||||
|
|
||||||
```shell
|
eg. `QueryScores` is now `AutopilotQueryScores`. `GetBlockHeader` is now `NeutrinoKitGetBlockHeader`.
|
||||||
⛰ make ios
|
|
||||||
```
|
|
||||||
|
|
||||||
To support subservers that have APIs with name conflicts, pass the "prefix" flag. This will add the subserver name as a prefix to each method name:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
⛰ make ios prefix=1
|
|
||||||
```
|
|
||||||
|
|
||||||
## API docs
|
## API docs
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user