This is the same setting as the "Do extra work to make the address 1 or 2 characters shorter" in the user interface. eighteenByteRipe is a boolean telling Bitmessage whether to generate an address with an 18 byte RIPE hash(as opposed to a 19 byte hash). Ĭreates one address using the random number generator. This is called listAddresses 2 because 'listAddresses' is obsolete. Returns a list of objects with these properties: Lists all addresses shown on the Your Identities tab. Used as a simple test of the API.ĭisplays the message in the status bar on the GUI Required arguments are denoted inside Optional arguments are inside. In order to connect with the remote copy of PyBitmessage, these settings must match those in PyBitmessage's "keys.dat" file.Ī more complete example can be found in the api_client.py file in the PyBitmessage source code. In this example, the username is "username", the password is "password", the IP address of the server running PyBitmessage is 105.168.1.0 (a random example), and the port number which PyBitmessage has been configured to listen on is 8442. The following Python code offers a demonstration of how to create a client that can connect to the PyBitmessage API. To access the Bitmessage API from a remote location, change the apiinterface value from 127.0.0.1 to 0.0.0.0. Be sure your program doesn't crash when given newer arguments introduced in the future as this list will likely expand. One of these arguments will be passed to your program: startingUp, newMessage, newBroadcast. Note that the values "username" and "password" below are merely examples, and should be replaced by values that cannot feasibly be guessed:Īdditionally, you may optionally include an additional entry which will specify a program which Bitmessage will run when certain events occur. To enable the API, copy and paste these lines into the bitmessagesettings section of the keys.dat file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |