Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
105 lines (82 sloc) 5.58 KB

Wallet

Wallet endpoint provides all informations related to the current state of the daemon.

Information

Retrieve all information about the wallet managed by the daemon.

Endpoint

.. http:get:: /wallet

Request

Name Required Description Default Value Example
         

Response

Name Required Description Default Value Example
address required SDK's ethereum address   0x627306090abaB3A6e1400e9345bC60c78a8BEf57
ethereumNodeUrl required Ethereum node SDK is connected to   https://mainnet.infura.io/
ethereumNetworkId required Network id seen by SDK   1
hubContractAddress required Liquidity Hub contract SDK is connected to   0xac8c3D5242b425DE1b86b17E407D8E949D994010
hubProviderUrl required Liquidity Hub host SDK is connected to   https://beta.liquidity.network
amount required Amount SDK manages off-chain   1000000000000000000
onchain required On-chain information managed by the SDK   { amount: 0 }

Example

GET /wallet HTTP/1.1
HTTP/1.1 200 OK
Content-Type: application/json

{
    "address": "0x627306090abaB3A6e1400e9345bC60c78a8BEf57",
    "ethereumNodeUrl": "https://mainnet.infura.io/",
    "ethereumNetworkId": 1,
    "hubContractAddress": "0x46a1657f132030476496112126Be35384bdDDDAD",
    "hubProviderUrl": "https://public.liquidity.network",
    "amount": "1",
    "onchain": {
        "amount": "0"
    }
}