This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DB_DIRECTORY = /var/electrumx | |
USERNAME = electrumx | |
ELECTRUMX = /usr/local/bin/electrumx_server.py | |
#Bitcoin Node RPC Credentials | |
DAEMON_URL = http://user:pass@IPaddress:port/ | |
#port is optional, defaults to COIN RPC default | |
# | |
#REQUIRED FOR PUBLIC VISIBILITY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
現在monacoindの開発についてはテクノブレイク・フォン・モナーバウム(以下ワタナベ氏)が一任しています。 | |
連絡は基本取らないようですが、問題等あればPullRequest及びissueをgithubにて出すことで対応してもらうことは可能です。 | |
monacoinの開発と言うのは何を指すのか?と言いますと基本的には周辺環境の開発を指します。 | |
coind自体以外の互換コア開発(monad(golang実装),monacoinj(Java実装)など)についてはワタナベ氏以外が行っています。 | |
誰に許可を取って開発していいか分からないと言うのはありますが、許可を取る必要は特にありません。 | |
しいて言うならば、他のウォレット等との互換性を保つための取り決めは守ったほうが良いかなと言うところでしょうか。 | |
他のコインも含めて大体はここに書いてあります。 | |
https://github.com/satoshilabs/slips |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream websocket { | |
server localhost:9141; | |
} | |
server { | |
listen 443 ssl; | |
ssl on; | |
ssl_certificate /etc/nginx/certs/electrum-mona.org.pem; | |
ssl_certificate_key /etc/nginx/certs/electrum-mona.org.key; | |
ssl_client_certificate /etc/nginx/certs/cloudflare.crt; | |
ssl_verify_client on; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dockerのインストール | |
# https://docs.docker.com/engine/install/ubuntu/ | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
sudo apt-get update | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
01000000 - version | |
0000000000000000000000000000000000000000000000000000000000000000 - prev block | |
a64bac07fe31877f31d03252953b3c32398933af7a724119bc4d6fa4a805e435 - merkle root | |
008f4d5f - timestamp | |
f0ff0f1e - bits | |
f93b3b00 - nonce | |
01 - number of transactions | |
01000000 - version | |
01 - input | |
0000000000000000000000000000000000000000000000000000000000000000ffffffff - prev output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ monactl getblockhash 0 | |
400c930bf4c5a3c4fce38554d4d1d24a61cf78316abfda22d034e2bb567335b5 | |
$ monactl getblock 400c930bf4c5a3c4fce38554d4d1d24a61cf78316abfda22d034e2bb567335b5 2 | |
{ | |
"hash": "400c930bf4c5a3c4fce38554d4d1d24a61cf78316abfda22d034e2bb567335b5", | |
"confirmations": 1, | |
"strippedsize": 303, | |
"size": 303, | |
"weight": 1212, | |
"height": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## monacoin.confの内容 | |
rpcuser=wakiyamatamamichankawaii | |
rpcpassword=[適当にパスワードどうぞ] | |
daemon=1 | |
txindex=1 | |
addressindex=1 | |
spentindex=1 | |
server=1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import requests | |
endpoint = "http://127.0.0.1:5001/api/v0/pin/add" | |
url= "https://card.mona.jp/api/cid_list" | |
response = requests.get(url) | |
parse_data = re.finditer(r'"cid":"([a-z0-9]+)"', response.text) | |
for m in parse_data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#最初にgoのインストール | |
#go がインストールされてないか確認 | |
#goをインストールしろとか書かれてない限りはそのままどうぞ | |
go version | |
#snapでインストールできるgoのバージョンを確認(monadは今だとgo1.13以上が必要) | |
snap info go | |
#go1.15をインストール | |
sudo snap install --classic --channel=1.15/stable go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test2 |
NewerOlder