streamd
Stream daemon / API
Browse resources ↗Explore streamd, accounts, transactions and JavaScript APIs. Search titles and full text to find what you need.
Stream daemon / API
Browse resources ↗StreamAPI for JavaScript
Browse resources ↗Tutorials & support
Browse resources ↗If you want to communicate directly with the streamd server, you can use the WebSocke…
The WebSocket and JSON-RPC APIs are still under development and subject to change.
STREAMDWEBSOCKET AND JSON-RPC APIAPI changesConnect streamdReason for running persona…
The core peer-to-peer server that runs the Stream network is called streamd. Each str…
To communicate directly with a streamd server, use the WebSocket API or JSON-RPC API.…
WebSocket and JSON-RPC APIs are still under development and are subject to change.
Both the WebSocket API and JSON-RPC use JSON for requests and responses. Methods and …
Successful response example { "id": 2, "status": "success", "type": "response", "resu…
Before sending any commands to a streamd server, you need to know which server to con…
There are many reasons to run your own streamd server. In general, you can trust your…
You can use any HTTP client (such as Poster for Firefox or Postman for Chrome) submit…
Command line and JSON-RPC connect to the same service, so the public server and serve…
If you are trying something on the Stream ledger, you can skip writing your own WebSo…
It is almost impossible to enumerate all the ways in which errors can occur. Some may…
When your request results in an error, the entire request is logged in the background…
All methods may return the following error code values: unknownCmd - The request does…
WebSocket and JSON-RPC APIs generally take the same parameters, albeit in different w…
Different types of objects can be identified in different ways: Accounts can be ident…
Many API methods require you to specify a ledger instance that includes the correct d…
All changes to Stream’s global shared ledger are the result of transactions. The only…
WebSocket and JSON-RPC API methods are defined based on command names and are divided…
account_currencies - Get the list of currencies that the account can send or receive …
The streamd management command is only available when connecting on a host and port i…
You can use the streamd application (as a standalone instance) as a JSON-RPC client. …
The "accounts" in the Stream ledger represent STM holders and transaction senders. Ac…
The account_info command will retrieve information about the account, its activity an…
The account_lines method returns information about the account's trust lines, includi…
The account_offers method retrieves a list of offers by a specific account as a speci…
The account_tx method retrieves a list of transactions involving the specified accoun…
Use the wallet_propose method to generate the keys required for the new account. Acco…
Different types of objects are uniquely identified in different ways: Accounts are di…
Each account in the Stream ledger is identified by an address in base58 encoding form…
In Stream, especially the transactions and ledgers, they are uniquely determined by a…
A serial number is a 32-bit unsigned integer that identifies a transaction or offer r…
The ledger index is a 32-bit unsigned integer used to identify the ledger. The ledger…
Many API methods require you to specify a ledger instance that includes the correct d…
There are two different currencies in Stream: stm and others. There are many differen…
Some API methods require you to specify a monetary amount. The specified style depend…
There are two currency codes in the STM ledger:Three-character currency codes. Upperc…
streamdThe server and its API represent times as unsigned integers. Measured as the n…
Depending on how the streamd server is configured, running time, and other factors, a…
The account_currencies command retrieves a list of currencies that an account can sen…
(need to enable PayChan amendment) The account_channels method returns information ab…
Each streamd server maintains a complete copy of the current state of the STM ledger,…
Retrieve information about the public ledger. Example of request format: { "id": 14, …
The ledger_closed method returns the unique identifier of the most recently closed le…
The ledger_current method returns the unique identifier of the currently ongoing ledg…
The ledger_data method retrieves the contents of the specified ledger. You can loop t…
The ledger_entry method returns a single ledger object from the STM ledger in raw for…
The ledger_request command tells the server to obtain a specific ledger version from …
The ledger_accept method forces the server to close the current working ledger and mo…
Transactions are the only way to modify the shared state of the STM ledger. All activ…
The tx method retrieves information for a single transaction. Example of request form…
The transaction_entry method retrieves information for a single transaction from a sp…
The tx_history method retrieves some recent transactions. Warning: This method is dep…
WebSocket API only! The path_find method finds possible payment paths and sends perio…
The create subcommand path_find creates a persistent request to find possible paths t…
path_find subcommand close instructs the server to stop sending information about cur…
Requests an immediate update of the path_find subcommand status for the client's curr…
sign method takes a transaction and key in JSON format and returns a signed binary re…
If you omit them, the server will automatically try to autofill certain fields in tx_…
The vstream_path_find method is a simplified version of path_find that can be used ou…
The submit method applies the transaction and sends it to the network for confirmatio…
The submission request contains the following parameters:FieldTypeDescriptiontx_blobS…
This mode signs the transaction and commits it immediately. This mode is intended for…
The book_offers method retrieves a list of quotes between two currencies, also known …
When using subscriptions, you can have the server push updates to the client when var…
The subscribe method requests the server to send periodic notifications when certain …
The ledger flow only sends ledgerClosed messages when the consensus process declares …
Many subscriptions result in messages about transactions, including the following:The…
The administrator-only peer_status stream reports a wealth of information about strea…
The unsubscribe command tells the server to stop sending messages for a specific subs…
There are also commands that can retrieve information about the current status of the…
The server_info command requests a human-readable version of various information from…
The server_state command asks the server for various machine-readable information abo…
With the online_delete and advisory_delete configuration options enabled, the can_del…
The consensus_info command provides information about the consensus process for debug…
The fetch_info command returns information about the objects this server is currently…
The feature command returns information about the modifications that the server is aw…
The get_counts command provides various statistics about the health of the server, ma…
The ledger_cleaner command controls the Ledger Cleaner, an asynchronous maintenance p…
The log_level command changes the logging verbosity of the streamd server, or returns…
The logrotate command closes and reopens the log file. This is intended to aid log ro…
Use the validation_create command to generate the Streamd validator key. Similar to t…
The validation_seed command temporarily sets the secret value used by streamd for sig…
The peers command returns streamd a list of all other servers currently connected to …
The print command returns the current status of various internal subsystems, includin…
streamdThe server also provides some commands purely for convenience.
The ping command returns a confirmation so that clients can test connection status an…
The random command provides a random number that is used as a source of entropy for c…
The json method is a proxy for running other commands and accepts the parameters of t…
The connect command forces the streamd server to connect to a specific peer streamd s…
Gracefully shut down the server. This stop request is an administrative command that …
The novstream_check command provides a quick way to check the status of an account's …
Join the Stream community. Explore a connected world of value.