Construct a client connected to a Haveno daemon.
Haveno daemon url
Haveno daemon password
Add a Monero daemon connection.
daemon url or connection to add
Add a listener to receive notifications from the Haveno daemon.
the notification listener to add
Check the current Monero daemon connection.
If disconnected and auto switch enabled, switch to the best available connection and return its status.
the current daemon connection status, undefined if no current connection
Check all Monero daemon connections.
status of all managed connections.
Create a crypto payment account.
the created payment account
description of the account
traded asset code
payment address of the account
Create a payment account.
the created payment account
the completed form to create the payment account
Create but do not relay a transaction to send funds from the Monero wallet.
the created transaction
Get the user's balances.
the user's balances
Get the best available connection in order of priority then response time.
the best available connection in order of priority then response time, undefined if no connections available
Get all chat messages for a trade.
the id of the trade
Get the market depth of a currency.
market depth of the given currency
asset to get the market depth of
Get the current Monero daemon connection.
the current daemon connection, undefined if no current connection
Get all Monero daemon connections.
all daemon connections
Gets the current local monero node settings.
Get the user's posted offers to buy or sell XMR.
the user's created offers
Optional
assetCode: stringtraded asset code
Optional
direction: string"buy" or "sell" XMR (default all)
Get a payment account by id.
the payment account
the payment account id to get
Get a form for the given payment method to complete and create a new payment account.
the payment account form
the id of the payment method
Get a form from the given payment account payload.
the payment account form
payload to get as a form
Get payment accounts.
the payment accounts
Get payment methods.
the payment methods
Optional
assetCode: stringget payment methods supporting this asset code (optional)
Get the current market prices of all a.
prices of the assets per 1 XMR
Post an offer.
the posted offer
"buy" or "sell" XMR
amount of XMR to trade
asset code to trade for XMR
payment account id
buyer security deposit as % of trade amount
Optional
price: numbertrade price (optional, default to market price)
Optional
marketPriceMarginPct: numberif using market price, % from market price to accept (optional, default 0%)
Optional
triggerPrice: numberprice to remove offer (optional)
Optional
minAmount: bigintminimum amount to trade (optional, default to fixed amount)
Remove a notification listener.
the notification listener to remove
Resolve a dispute. By default, the winner receives the trade amount and the security deposits are returned, but the arbitrator may award a custom amount to the winner and the loser will get the rest.
Send a dispute chat message.
the id of the dispute
the message
attachments
Set the current Monero daemon connection.
Add the connection if not previously seen. If the connection is provided as string, connect to the URI with any previously set credentials and priority. If the connection is provided as UrlConnection, overwrite any previously set credentials and priority. If undefined connection provided, disconnect the client.
Optional
connection: string | UrlConnectionconnection to set as current
Starts the local monero node.
the settings to start the local node with
Static
startStart a new Haveno process.
a client connected to the newly started Haveno process
path to Haveno binaries
command to start the process
Haveno daemon url (must proxy to api port)
specifies if logging is enabled or disabled at log level 3
Generated using TypeDoc
Haveno daemon client.