electrum-personal-server

Maximally lightweight electrum server for a single user
git clone https://git.parazyd.org/electrum-personal-server
Log | Files | Refs | README

config.ini_sample (5256B)


      1 # Electrum Personal Server configuration file
      2 
      3 # Lines starting with # are called comments which are ignored.
      4 # For a line to have effect it must not start with #
      5 
      6 # The most important options are towards the top of the file
      7 
      8 [master-public-keys]
      9 # Add electrum wallet master public keys to this section
     10 # In electrum then go Wallet -> Information to get the mpk
     11 
     12 #any_name_works = xpub661MyMwAqRbcFseXCwRdRVkhVuzEiskg4QUp5XpUdNf2uGXvQmnD4zcofZ1MN6Fo8PjqQ5cemJQ39f7RTwDVVputHMFjPUn8VRp2pJQMgEF
     13 
     14 # Multiple master public keys may be added by simply adding another line
     15 #my_second_wallet = xpubanotherkey
     16 
     17 # Multisig wallets use format `required-signatures [list of master pub keys]`
     18 # this example is a 2-of-3 multisig wallet
     19 #multisig_wallet = 2 xpub661MyMwAqRbcFseXCwRdRVkhVuzEiskg4QUp5XpUdNf2uGXvQmnD4zcofZ1MN6Fo8PjqQ5cemJQ39f7RTwDVVputHMFjPUn8VRp2pJQMgEF xpub661MyMwAqRbcFseXCwRdRVkhVuzEiskg4QUp5XpUdNf2uGXvQmnD4zcofZ1MN6Fo8PjqQ5cemJQ39f7RTwDVVputHMFjPUn8VRp2pJQMgEF xpub661MyMwAqRbcFseXCwRdRVkhVuzEiskg4QUp5XpUdNf2uGXvQmnD4zcofZ1MN6Fo8PjqQ5cemJQ39f7RTwDVVputHMFjPUn8VRp2pJQMgEF
     20 
     21 
     22 [bitcoin-rpc]
     23 host = 127.0.0.1
     24 port = 8332
     25 #add the bitcoin datadir to search for the .cookie file created by the
     26 # node, which avoids the need to configure rpc_user/pass
     27 #leave this option empty to have it look in the default location
     28 datadir = 
     29 #if you dont want to use the .cookie method with datadir, uncomment to config u/p here
     30 #rpc_user =
     31 #rpc_password =
     32 
     33 #to be used with the multi-wallet feature
     34 # see https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.15.0.md#multi-wallet-support
     35 # empty means default file, for when using a single wallet file
     36 wallet_filename =
     37 
     38 # how often in seconds to poll for new transactions when electrum not connected
     39 poll_interval_listening = 30
     40 # how often in seconds to poll for new transactions when electrum is connected
     41 poll_interval_connected = 1
     42 
     43 # Parameters for dealing with deterministic wallets
     44 # how many addresses to import first time, should be big because if you import too little you may have to rescan again
     45 initial_import_count = 1000
     46 # number of unused addresses kept at the head of the wallet
     47 gap_limit = 25
     48 
     49 [electrum-server]
     50 # 0.0.0.0 to accept connections from any IP
     51 #127.0.0.1 to accept from only localhost
     52 host = 127.0.0.1
     53 port = 50002
     54 
     55 # space-separated whitelist of IP addresses
     56 # accepts CIDR notation eg 192.168.0.0/16 or 2a01:4f8:1f1::/120
     57 # star (*) means all are accepted
     58 # generally requires host binding (above) to be 0.0.0.0
     59 ip_whitelist = *
     60 
     61 #SSL certificate
     62 #uses the default one, which is fine because by default nobody should be
     63 # allowed to connect to your server or scan your packets
     64 #to generate another certificate see https://github.com/spesmilo/electrum-server/blob/ce1b11d7f5f7a70a3b6cc7ec1d3e552436e54ffe/HOWTO.md#step-8-create-a-self-signed-ssl-cert
     65 certfile = certs/cert.crt
     66 keyfile = certs/cert.key
     67 
     68 # Option for disabling the fee histogram calculation
     69 # It improves server responsiveness but stops mempool-based Electrum features
     70 # This is useful on low powered devices at times when the node mempool is large
     71 disable_mempool_fee_histogram = false
     72 
     73 # How often in seconds to update the mempool
     74 # this mempool is used to calculate the mempool fee histogram
     75 mempool_update_interval = 60
     76 
     77 # Parameter for broadcasting unconfirmed transactions
     78 # Options are:
     79 # * tor-or-own-node  (use tor if tor is running locally, otherwise own-node)
     80 # * own-node         (broadcast using the connected full node)
     81 # * tor              (broadcast to random nodes over tor)
     82 # * system <cmd> %s  (save transaction to file, and invoke system command
     83 #                     with file path as parameter %s)
     84 broadcast_method = tor-or-own-node
     85 
     86 # For tor broadcasting (broadcast_method = tor) configure
     87 # the tor proxy host and port below
     88 tor_host = localhost
     89 tor_port = 9050
     90 
     91 # = Notes on tor broadcasting =
     92 # If using tor broadcasting, make sure you set `walletbroadcast=0` in
     93 #  your bitcoin.conf file
     94 # If your full node is connected to the internet only via tor then you dont
     95 #  need separate tor broadcasting
     96 
     97 
     98 [watch-only-addresses]
     99 #Add individual addresses to this section, for example paper wallets
    100 #Dont use this section for adding entire wallets, instead use the
    101 # above section `master-public-keys`
    102 
    103 #addr = 1DuqpoeTB9zLvVCXQG53VbMxvMkijk494n
    104 
    105 # A space separated list is also accepted
    106 #my_test_addresses = 3Hh7QujVLqz11tiQsnUE5CSL16WEHBmiyR 1PXRLo1FQoZyF1Jhnz4qbG5x8Bo3pFpybz bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq
    107 
    108 # multiple addresses may also be added in separate lines (like master public keys above)
    109 #addr2 = 3anotheraddress
    110 
    111 
    112 [logging]
    113 # Section for configuring the logging output
    114 
    115 # The log level. Logging messages less severe than this will not be displayed
    116 #options are 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'
    117 #Information printed to the log file is always at level DEBUG
    118 log_level_stdout = INFO
    119 
    120 # Location of log file, leave empty to use the default location in temp dir
    121 log_file_location =
    122 
    123 # Whether to append to log file or delete and overwrite on startup
    124 append_log = false
    125 
    126 # Format to use for logging messages
    127 #see docs https://docs.python.org/3/library/logging.html#formatter-objects
    128 log_format = %(levelname)s:%(asctime)s: %(message)s
    129