All Projects → moremorefun → go-dc-wallet

moremorefun / go-dc-wallet

Licence: MIT license
交易所收提币功能

Programming Languages

go
31211 projects - #10 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to go-dc-wallet

MugglePay
Make Crypto Payment Easy 让数字货币支付更简单
Stars: ✭ 176 (+131.58%)
Mutual labels:  btc, eos, usdt
Openapi
DragonEx OpenAPI
Stars: ✭ 54 (-28.95%)
Mutual labels:  btc, eth, eos
ChainWallet
一个以研究技术为目地的基础项目,也只有最基本 Bitcoin、Ethereum 、EOS 相关的加密算法。
Stars: ✭ 26 (-65.79%)
Mutual labels:  btc, eth, eos
MinerProxy
MinerProxy(中文名:加密挖全球 ),采用IOCP超高性能的网络框架编写,具有稳定性高,传输速度快,并发强等优点。可快速实现一键搭建任意矿池(ETH/ETC/RVN/ERGO/AE/BTC等)的中转节点,支持SSL加密,支持SSL矿池,支持任意第三方挖矿软件(包括OS系统),支持协议模拟功能,内网无需客户端即可SSL加密传输至VPS解密,并同时支持5个矿池的转发,有精准清晰的矿机数据展示列表,可方便配置合理抽水,自动拦截抽水增加业主算力。在保持业主算力不受大的影响的情况下,给予VPS搭建者一定的运营费用。
Stars: ✭ 447 (+488.16%)
Mutual labels:  btc, eth
Ccxt Rest
Open Source Unified REST API of 100+ Crypto Exchange Sites (18k+ docker pulls) - https://ccxt-rest.io/
Stars: ✭ 210 (+176.32%)
Mutual labels:  btc, eth
Coinbin.org
₿ A Human–Friendly API Service for Crypto Currency Information.
Stars: ✭ 253 (+232.89%)
Mutual labels:  btc, eth
bankster
Money Creation Made Easy
Stars: ✭ 30 (-60.53%)
Mutual labels:  btc, eth
ethereum-erc20
Fungible token implementation for the Ethereum blockchain.
Stars: ✭ 27 (-64.47%)
Mutual labels:  eth, erc20
zeneth
🏵️ Let Your ETH Chill — Gasless Ethereum account abstraction with Flashbots
Stars: ✭ 112 (+47.37%)
Mutual labels:  eth, erc20
coinbin.org
₿ A Human–Friendly API Service for Crypto Currency Information.
Stars: ✭ 255 (+235.53%)
Mutual labels:  btc, eth
crypto-watcher
Real-time cryptocurrencies prices.
Stars: ✭ 25 (-67.11%)
Mutual labels:  btc, eth
platzi-exchange
Proyecto del Curso Basico de Vue.js de Platzi 💚
Stars: ✭ 26 (-65.79%)
Mutual labels:  btc, eth
Cbpro Trader
Automated cryptocurrency trading on Coinbase Pro (formerly gdax-trader)
Stars: ✭ 171 (+125%)
Mutual labels:  btc, eth
Bot18
Bot18 is a high-frequency cryptocurrency trading bot developed by Zenbot creator @carlos8f
Stars: ✭ 157 (+106.58%)
Mutual labels:  btc, eth
tokencore
The core components of the blockchain wallet backend, support a variety of blockchain address generation and offline signatures
Stars: ✭ 412 (+442.11%)
Mutual labels:  btc, eth
Telegram Kraken Bot
Python bot to trade on Kraken via Telegram
Stars: ✭ 156 (+105.26%)
Mutual labels:  btc, eth
Multicurrencywallet
Bitcoin, Ethereum, ERC20 crypto wallets with Atomic Swap exchange. Release announce: https://twitter.com/SwapOnlineTeam/status/1321844352369500160
Stars: ✭ 136 (+78.95%)
Mutual labels:  btc, erc20
coinmarketcap-icons-cryptos
Repository of all crypto icons, and allows you to download all images of icons of crypto currencies listed on the coinmarketcap site 9129 icons
Stars: ✭ 17 (-77.63%)
Mutual labels:  btc, eth
Tardis Node
Convenient access to tick-level real-time and historical cryptocurrency market data via Node.js
Stars: ✭ 126 (+65.79%)
Mutual labels:  btc, eth
Phptrader
A simple php powered Bitcoin and Ethereum trading bot
Stars: ✭ 131 (+72.37%)
Mutual labels:  btc, eth

go-dc-wallet

build License: MIT blog

** 注意,该项目暂未经过生产环境测试,请谨慎使用 **

目录

背景

很多加密货币相关的项目需要收提币的功能,这里提供了一个用于收提币服务的项目.目前支持的币种有:

  • Ethereum(以太坊) 已支持EIP-1559
  • Erc20(以太坊代币)
  • Bitcoin(比特币)
  • OmniLayer(比特币代币)
  • Eos

项目依赖

  • 项目使用Golang编写
  • 数据库使用MySQL
  • Ethereum的RPC服务
  • OmniLayer的RPC服务
  • Eos的RPC服务,用到了chainhistory

使用说明

拉取代码并获取依赖库

# 拉取代吗
git clone https://github.com/moremorefun/go-dc-wallet.git
# 切换到项目目录
cd go-dc-wallet
# 获取依赖
go mod download

配置环境变量

cp .env-example .env

根据自身情况编辑 .env 文件

### 是否是debug,用来设置日志等级
IS-DEBUG=true

### mysql配置
MYSQL=root:123456@tcp(127.0.0.1:3306)/dc-wallet-prod?parseTime=true&loc=Local&charset=utf8mb4&collation=utf8mb4_unicode_ci&tx_isolation=%27READ-COMMITTED%27&sql_mode=%27STRICT_TRANS_TABLES%2cNO_ZERO_IN_DATE%2cERROR_FOR_DIVISION_BY_ZERO%2cNO_AUTO_CREATE_USER%2cNO_ENGINE_SUBSTITUTION%27
# 是否在日志中输出sql请求语句
MYSQL-IS-SHOW-SQL=false

### 私钥加密的key
AES-KEY=123

### eth rpc 接口
ETH_RPC=https://mainnet.infura.io/v3/0b359d2406a6492fb53883d46921d775

### btc rpc 接口
# btc接口类型可选值为 btc 和 btc-test
BTC-NETWORK-TYPE=btc
OMNI_RPC_HOST=http://127.0.0.1:18332
OMNI_RPC_USER=omni
OMNI_RPC_PWD=omni

### eos rpc 接口
EOS_RPC=https://eosbp.atticlab.net

初始化数据库

创建配置的数据库

例如上面的.env中设置的数据库名为dc-wallet-prod.

运行数据库表差异SQL生成工具

生成数据库表结构SQL文件

go run cmd/db/main.go

确认生成的SQL无问题后在MySQL中执行,生成相应的表格.

初始化基础数据

go run cmd/dbinit/main.go

手动添加自身需要设置的数据

# eth冷钱包地址
t_app_config_str.cold_wallet_address
# btc冷钱包地址
t_app_config_str.cold_wallet_address_btc
# eos 冷钱包地址
t_app_config_str.cold_wallet_address_eos
# eos 热钱包地址
t_app_config_str.hot_wallet_address_eos

# erc20 token 冷钱包地址
t_app_config_token[].cold_address

# omni token 冷钱包地址
t_app_config_token_btc[].cold_address

# 用于提供api服务的相关数据
t_product

生成eos加密私钥

go run cmd/getaeskey/main.go -k eos原始私钥

输出为加密以后的私钥,将输出的值加入数据库

# eos 热钱包加密私钥
t_app_config_str.hot_wallet_key_eos

运行定时任务

go run cmd/crontab/main.go

运行API服务接口

go run cmd/api/main.go

接口使用文档

API接口使用使用文档

维护者

@moremorefun 那些年我们De过的Bug

使用许可

MIT © moremorefun

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].