Django 区块链钱包应用
pip install Django>=4.0.4,<5
# 构建本地数据库
python manage.py migrate
# 创建超级用户
python manage.py createsuperuser
# 加载基础区块链数据
python manage.py loaddata wallet.json
# 创建钱包地址
python manage.py create_deposit_address -u [username or uid]
# 创建钱包地址
python manage.py create_deposit_address -u [username or uid]
# 检测地址是否发生余额变动
python manage.py check_address_status -c [eth or trx]
# 检测地址是否发生充值记录
python manage.py check_address_deposit -c [eth or trx]
接口: /wallet/address/{address}
{
"results": "success"
}
{
"results": [
"State matching query does not exist."
]
}