Ethereum wallet balance api
The streaming updates protocol described above can be accessed using websockets. The server first sends the current order book state and thereafter sends update messages as quickly as possible. Both the client and server must send regular keep alive messages to avoid disconnection during periods of low update message activity.
If there is any error while processing an update e. It is critical that clients implement exponential backoff for all reconnections to avoid overloading the server in case of errors. If you are interested in integrating Bitcoin payments as a merchant, please contact Luno Support.
Android Haskell Java Node. Ticker Returns the latest ticker indicators. At most results are returned per call. Permissions Each API key is granted a set of permissions when it is created.
Here is a list of the possible permissions: Accounts All transactions on the Luno platform operate on accounts. Create Account Create an additional account for the specified currency. Click here to read more about how order matching works. List Orders Returns a list of the most recently placed orders. Some trades may have taken place but the order is not filled yet. It has been settled or has been cancelled. The pair specifies the market. Definition A market order executes immediately, and either buys as much bitcoin that can be bought for a set amount of fiat currency, or sells a set amount of bitcoin for as much fiat as possible.
Results of this query may lag behind the latest data. If not provided, the default address will be used. The currency depends on the type. This parameter is required if you have multiple bank accounts. Your bank account beneficiary ID can be found by clicking on the beneficiary name on the Beneficiaries page.
XBT address string required Destination Bitcoin address or email address, or Ethereum address to send to. Ethereum addresses must be checksummed. Ethereum sends to email addresses are not supported.
This is only relevant when sending to an email address. Create a quote Creates a new quote to buy or sell a particular amount. The pair can also be flipped if you want to buy or sell the counter currency e.
Protocol The client state consists of the following data: A message may contain multiple updates which must be applied atomically and in order. There are three types of update: Create Add a bid or ask order to the order book with a given id, price and volume. A market order is placed that is immediately filled In this case, an update message would be sent containing multiple trade updates.
An order is placed that is partially filled In this case, the update message contains multiple trade updates and a create update.
An order is stopped In this case, the update message contains a single delete update. Websockets The streaming updates protocol described above can be accessed using websockets. Connect to the websocket server at: The client must start by sending API key credentials: OAuth2 is no longer available for new applications. Updated websocket server to wss: Address creation is rate limited to 1 per hour, allowing for bursts of up to 10 consecutive calls.
Added beta Streaming API section Error code may be returned when exceeding rate limits. This will become the default as of You will have to generate a new API key if you require these permissions. The old URLs are now deprecated. Added POST accounts for creating additional accounts in specified currencies. Added the "Name" field to the "Balance" response Added the "Accounts" section.
Added the account transactions and pending transactions calls. Added the "Permissions" section. Documented which permissions are required for each call. Updated description of the "send" call. A pin is no longer required. The amount parameter for withdrawal requests now excludes the withdrawal fee. Added the new Quotes API. The transactions beta call has been deprecated. The balance method can now be called with no arguments to return all account balances. Added Send API call.
Orders placed through the API are no longer subject to different limits than those placed through the website. You can now create multiple API keys with different permissions e. Added calls to list, create, get and cancel withdrawal requests. Added link to Android client library. The preferred host name for API calls has changed to api.
Added experimental call to retrieve transactions list. Added call to allocate new receive addresses. Receive address call now returns the amount received by that address. You can now request listorders to return only the list of open orders.
Previously orders created through the API would expire after 24 hours. Now, orders created through the API do not expire. The behaviour is now the same as for orders placed through the website. The API has been extended to support multiple asset pairs. A new balance call has been added to query the trading account balance. This call has been deprecated. Please use the new balance call instead. The currency field is now deprecated.
The embedded market indicator has been removed since nobody is using it. All deprecated features will continue to work for two months. For a "BUY" order: For a "SELL" order: Specific Bitcoin or Ethereum address to retrieve. The beneficiary ID of the bank account the withdrawal will be paid out to.
Returns a Promise with the value as a hex string at addressOrName in position at blockTag. These methods allow management of callbacks on certain events on the blockchain and contracts. When the corresponding transaction is mined; also see Waiting for Transactions. There are several common objects and types that are commonly used as input parameters or return types for various provider calls. Any property which accepts a number may also be specified as a BigNumber or hex string. Filtering on topics supports a somewhat complicated specification, however, for the vast majority of filters, a single topic is usually sufficient see the example below.
Web3Provider web3Provider [ , network ] Connect to an existing Web3 provider e. FallbackProvider providers Improves reliability by attempting each provider in turn, falling back to the next in the list if an error was encountered. The only required method on a Web3 provider is: See Transaction Requests This is free, since it does not change any state on the blockchain.
See Transaction Requests This is free, but only an estimate. Wallet privateKey ; wallet. See Block Tags default: By default, events begin at the block number that the provider began polling at. Each block has a block number eg.
The most recently mined block. The block that is currently being mined. The EtherscanProvider only supports a single topic. Block Tags above fromBlock: If no address is specified, the first account on the node is used.