{"id":371,"date":"2020-09-29T22:06:56","date_gmt":"2020-09-29T22:06:56","guid":{"rendered":"http:\/\/bitcoinsv-io.bitproton.com\/?post_type=miner_document&p=371"},"modified":"2020-09-29T19:30:53","modified_gmt":"2020-09-29T19:30:53","slug":"mapi","status":"publish","type":"miner_document","link":"https:\/\/bitcoinsv.io\/documentation\/miners\/installation\/mapi\/","title":{"rendered":"mAPI"},"content":{"rendered":"\n
The following instructions describe installing mAPI using tools available in most mainstream Linux distributions. We assume you use a Bourne-like shell such as The BRFC (Bitcoin request for comment) specification can be found h<\/a>ere<\/a>.<\/p>\n\n\n\n The open source code of the reference implementation can be found here<\/a>.<\/p>\n\n\n\n For support and general discussion of both standard and reference implementations please join the following telegram group<\/a>.<\/p>\n\n\n\n mAPI configuration relies on a settings.conf<\/a> file for the main service configurations as well as one or more fees*.json files (ex. fees.json<\/a> for default fees, fees_low.json<\/a> for lower fees, fees_user1.json for user1, etc.) to specify fees to be charged.<\/p>\n\n\n\n In order to sign responses, you will also need to run\u00a0Miner ID<\/a>\u00a0and provide the endpoint to mAPI in the settings configurations.<\/p><\/blockquote>\n\n\n\n All settings can be overwritten with environment variables<\/p>\n\n\n\n Open settings.conf<\/a> and edit it with your settings:<\/p>\n\n\n\n Please see the\u00a0Fee Spec BRFC<\/a>\u00a0for the fees JSON format.<\/p>\n\n\n\nbash<\/code>.<\/p>\n\n\n\n
Support<\/h2>\n\n\n\n
Configuration<\/h2>\n\n\n\n
settings.conf File<\/h3>\n\n\n\n
httpAddress<\/code> or
httpsAddress<\/code> to bind on specific interfaces<\/li>
jwtKey<\/code> for tokens Generate new JWT key:<\/li><\/ul>\n\n\n\n
console $ node -e \"console.log(require('crypto').randomBytes(32).toString('hex'));\"<\/code><\/p>\n\n\n\n
quoteExpiryMinutes<\/code> to set feeQuote expiry time<\/li>
bitcoin_count<\/code><\/li>
bitcoin_1_host<\/code><\/li>
bitcoin_1_port<\/code><\/li>
bitcoin_1_username<\/code><\/li>
bitcoin_1_password<\/code><\/li>
minerId_URL<\/code> and
minerId_alias<\/code> to set URL alias of Miner ID<\/li><\/ul>\n\n\n\n
fees*.json Files<\/h3>\n\n\n\n
Build from source<\/h2>\n\n\n\n