Wallet

Wallet endpoint provides all information regarding the current state of the automaton.

Information

Retrieve all information related to the wallet managed by the automaton.

Endpoint

GET /wallet/information

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/information
{
    "address": "0x627306090abaB3A6e1400e9345bC60c78a8BEf57",
    "ethereumNodeUrl": "https://mainnet.infura.io/",
    "ethereumNetworkId": 1,
    "hubContractAddress": "0xac8c3D5242b425DE1b86b17E407D8E949D994010",
    "hubProviderUrl": "https://beta.liquidity.network",
    "amount": "1",
    "onchain": {
        "amount": "0"
    }
}