This repo introduces a simple server, which provided some APIs for search DAS account's records or reverse records

Overview

Das-Account-Indexer

This repo introduces a simple server, which provided some APIs for search DAS account's records or reverse records

Prerequisites

  • Ubuntu >= 18.04
  • MYSQL >= 8.0
  • go version >= 1.15.0
  • Redis >= 5.0 (for cache, not necessary)

Install

# get the code
git clone https://github.com/DeAccountSystems/das-account-indexer.git

# edit conf/config.yaml for your own convenient
vi conf/config.yaml

# init mysql database
mysql -uroot -p
> source das-account-indexer/tables/sql.sql
> quit;

# compile and run
cd das-account-indexer
make default
./das_account_indexer_server --config=conf/config.yaml
# it will take about 3 hours to synchronize to the latest data(Dec 15, 2021)

Usage

Here is the main document about APIs

  • If you are come from das_account_indexer, you probably need do nothing, the new APIs are compatible with the old ones. More details see deprecated-api-list, but we still suggest you replace with the corresponding new APIs
  • If you are a newcomer, just read api-list

Others

You might also like...
Reverse-engineered API + SDK for the Amizone Student Portal.

go-amizone go-amizone is a simple and robust Go library and API server for the Amizone student portal. This library is intended to be used as a self-h

A golang client for the Twitch v3 API - public APIs only (for now)

go-twitch Test CLIENT_ID="my client ID" go test -v -cover Usage Example File: package main import ( "log" "os" "github.com/knspriggs/go-twi

Auto-generated Google APIs for Go.

Google APIs Client Library for Go Getting Started $ go get google.golang.org/api/tasks/v1 $ go get google.golang.org/api/moderator/v1 $ go get google.

Twilight is an unofficial Golang SDK for Twilio APIs
Twilight is an unofficial Golang SDK for Twilio APIs

Twilight is an unofficial Golang SDK for Twilio APIs. Twilight was born as a result of my inability to spell Twilio correctly. I searched for a Twillio Golang client library and couldn’t find any, I decided to build one. Halfway through building this, I realized I had spelled Twilio as Twillio when searching for a client library on Github.

Sync your bank transactions with google sheets using Open Banking APIs

Sync your bank transactions with google sheets using Open Banking APIs

Sync your bank transactions with google sheets using Open Banking APIs

this is a markdown version of the copy on the site landing page: https://youneedaspreadsheet.com You need a spreadsheet 📊 Get on top of your finances

The MinIO Admin Go Client SDK provides APIs to manage MinIO services

Golang Admin Client API Reference The MinIO Admin Golang Client SDK provides APIs to manage MinIO services. This quickstart guide will show you how to

lambda-go-api-proxy makes it easy to port APIs written with Go frameworks such as Gin to AWS Lambda and Amazon API Gateway.

aws-lambda-go-api-proxy makes it easy to run Golang APIs written with frameworks such as Gin with AWS Lambda and Amazon API Gateway.

Go API Client for NASA's Open APIs

Go Client for Nasa Open APIs Description The Go Client for Nasa Open APIs is a Go Client for the following Nasa Open APIs: APOD: Astronomy Picture of

Comments
  • conf/config.yaml参数具体含义及获取途径

    conf/config.yaml参数具体含义及获取途径

    在试图运行indexer的过程中,出现如下错误: 2022-02-12 02:35:43.007007786 INFO cmd/main.go:66 ▶ [main] db ok 2022-02-12 02:35:43.014012821 INFO cmd/main.go:79 ▶ [main] ckb node ok 2022-02-12 02:35:43.207004849 FATAL cmd/main.go:43 ▶ [main] InitDasSoScript err: ConfigCellDataBuilderByTypeArgs err: ConfigCellDataBuilderRefByTypeArgs err: ConfigCellMainFromSlice err: HeaderIsBroken ConfigCellMain 0 < 4

    但不能定位到具体的错误原因及修正方式。烦请协助告知。

    opened by refiny 4
  • starting error

    starting error

    Hi. There were some errors after I started the server and I couldn't find the problem.

    2022-01-21 13:12:55.480654815	DEBUG	cmd/main.go:30	▶ [main] Start service:
    
    2022-01-21 13:12:55.553157034	INFO	config/config.go:20	▶ [main] config file path: conf/config.yaml
    
    2022-01-21 13:12:55.558226545	INFO	config/config.go:24	▶ [main] config file info: {"server":{"net":1,"http_server_addr":":8121","http_server_addr_indexer":":8122","http_server_addr_reverse":":8123"},"chain":{"ckb_url":"http://127.0.0.1:8114","index_url":"http://127.0.0.1:8116","current_block_number":4872287,"confirm_num":4,"concurrency_num":100},"db":{"mysql":{"addr":"127.0.0.1:3306","user":"root","password":"----","db_name":"das_account_indexer","max_open_conn":100,"max_idle_conn":50}},"cache":{"redis":{"addr":"127.0.0.1:3307","password":"","db_num":0}},"das_lib":{"thq_code_hash":"0x9e537bf5b8ec044ca3f53355e879f3fd8832217e4a9b41d9994cf0c547241a79","das_contract_args":"0xc126635ece567c71c50f7482c5db80603852c306","das_contract_code_hash":"0x00000000000000000000000000000000000000000000000000545950455f4944","map_das_contract":{"account-cell-type":"0x96dc231bbbee6aa474076468640f9e0ad27cf13b1343716a7ce04b116ea18ba8","balance-cell-type":"0xbdc8f42643ccad23e8df3d2e8dbdea9201812cd1b7f84c46e69b020529629822","config-cell-type":"0x3775c65aabe8b79980c4933dd2f4347fa5ef03611cef64328685618aa7535794","das-lock":"0xda22fd296682488687a6035b5fc97c269b72d7de128034389bd03041b40309c0","reverse-record-cell-type":"0x000f3e1a89d85d268ed6d36578d474ecf91d8809f4f696dd2e5b97fe67b84a2e"}}}
    
    2022-01-21 13:12:55.574569004	INFO	cmd/main.go:66	▶ [main] db ok
    
    2022-01-21 13:12:55.575863586	INFO	cmd/main.go:79	▶ [main] ckb node ok
    
    2022-01-21 13:12:55.576817904	ERROR	core/contract.go:87	▶ [das-core] GetCells err: config-cell-type Post "http://127.0.0.1:8116": dial tcp 127.0.0.1:8116: connect: connection refused
    
    2022-01-21 13:12:55.577170729	ERROR	core/contract.go:87	▶ [das-core] GetCells err: account-cell-type Post "http://127.0.0.1:8116": dial tcp 127.0.0.1:8116: connect: connection refused
    
    2022-01-21 13:12:55.577488694	ERROR	core/contract.go:87	▶ [das-core] GetCells err: balance-cell-type Post "http://127.0.0.1:8116": dial tcp 127.0.0.1:8116: connect: connection refused
    
    2022-01-21 13:12:55.577804497	ERROR	core/contract.go:87	▶ [das-core] GetCells err: das-lock Post "http://127.0.0.1:8116": dial tcp 127.0.0.1:8116: connect: connection refused
    
    2022-01-21 13:12:55.578160582	ERROR	core/contract.go:87	▶ [das-core] GetCells err: reverse-record-cell-type Post "http://127.0.0.1:8116": dial tcp 127.0.0.1:8116: connect: connection refused
    
    2022-01-21 13:12:55.580420991	FATAL	cmd/main.go:43	▶ [main] InitDasConfigCell err: GetCells err: Post "http://127.0.0.1:8116": dial tcp 127.0.0.1:8116: connect: connection refused
    
    opened by airyland 2
  • 使用 v1.1.6 二进制文件部署遇到错误

    使用 v1.1.6 二进制文件部署遇到错误

    1、你们似乎没有把最新的版本上传到 hub.docker.com上面 2、下载二进制文件部署,遇到如下错误

    2022-07-15 15:54:37.38734819	INFO	cmd/main.go:67	▶ [main] db ok
    
    2022-07-15 15:54:37.38790774	INFO	cmd/main.go:80	▶ [main] ckb node ok
    
    panic: runtime error: slice bounds out of range [:4] with capacity 0
    
    goroutine 1 [running]:
    github.com/dotbitHQ/das-lib/witness.ConfigCellDataBuilderRefByTypeArgs(0xc00018a000, 0xc0005180c0, 0xe34d96, 0xa, 0x0, 0x0)
    	/mnt/server/go/gopath/pkg/mod/github.com/dotbit!h!q/[email protected]/witness/config_cell.go:137 +0x2b05
    github.com/dotbitHQ/das-lib/witness.ConfigCellDataBuilderByTypeArgs(0xc0005180c0, 0xe34d96, 0xa, 0x0, 0x0, 0x0)
    	/mnt/server/go/gopath/pkg/mod/github.com/dotbit!h!q/[email protected]/witness/config_cell.go:219 +0x65
    github.com/dotbitHQ/das-lib/core.(*DasCore).ConfigCellDataBuilderByTypeArgs(0xc00009a000, 0xe34d96, 0xa, 0xd217c0, 0xc00044b080, 0x0)
    	/mnt/server/go/gopath/pkg/mod/github.com/dotbit!h!q/[email protected]/core/config_cell.go:157 +0x1a7
    github.com/dotbitHQ/das-lib/core.(*DasCore).InitDasConfigCell(0xc00009a000, 0xc0004de720, 0x1634c50)
    	/mnt/server/go/gopath/pkg/mod/github.com/dotbit!h!q/[email protected]/core/config_cell.go:65 +0xf0c
    main.runServer(0xc00042eec0, 0x0, 0x2)
    	/mnt/server/das-account-indexer/das-account-indexer/cmd/main.go:95 +0x57f
    github.com/urfave/cli/v2.(*App).RunContext(0xc000126b60, 0xf70790, 0xc00011c000, 0xc00013c000, 0x2, 0x2, 0x0, 0x0)
    	/mnt/server/go/gopath/pkg/mod/github.com/urfave/cli/[email protected]/app.go:322 +0x6fe
    github.com/urfave/cli/v2.(*App).Run(...)
    	/mnt/server/go/gopath/pkg/mod/github.com/urfave/cli/[email protected]/app.go:224
    main.main()
    	/mnt/server/das-account-indexer/das-account-indexer/cmd/main.go:43 +0x1e5
    
    opened by mfuuzy 1
Releases(v1.3.0)
Owner
DAS
Decentralized Account Systems
DAS
A tool for creating hidden accounts using the registry.

CreateHiddenAccount 创建隐藏账号 中文 | EN Tool Introduction There are two common ways to create a hidden account. One is to add the $ sign directly after the

Wolf Group Security Team 347 Dec 20, 2022
Utilcanvas is a package which provides some utilities to interface with the Canvas LMS Api.

Utilcanvas Utilcanvas is a package which provides some utilities to interface with the Canvas LMS Api. Example usage c := utilcanvas.NewClient("https:

Martín Zamorano 1 Dec 21, 2022
Simple-api - Create Simple `Hello World` APIs from Various Programming Languages

simple-api Create Simple `Hello World` APIs from Various Programming Languages.

I am Groot 1 Jan 18, 2022
Dynamodb-expire-non-latest - Dynamodb spike to find best solution to set expire on old records

Goal, expire non-latest records User (identified by IP address), adds record A,

Kai Hendry 1 Jan 5, 2022
Prig is for Processing Records In Go. Like AWK, but snobbish.

Prig: the snobbish AWK Prig is for Processing Records In Go. It's like AWK, but snobbish (Go! static typing!). It's also faster to execute, and if you

Ben Hoyt 61 Sep 20, 2022
"there" also called "GoThere" aims to be a simple Go Library to reduce redundant code for REST APIs.

there "there" also called "GoThere" aims to be a simple Go Library to reduce redundant code for REST APIs. Despite the existence of the other librarie

Christoph Krassnigg 43 Dec 25, 2022
Simple tool to search tagged resources between all AWS resouces

Welcome to Cloud Inventory Tags ?? Simple tool to search tagged resources around all AWS Account Installation MacOS / OSX

Matheus Fidelis 16 Jan 26, 2022
Generate Markdown table for starred repo for a user.

List of Starred Repository How this generated? Id Name Description Star Counts Topics/Tags Last Updated 1 coreutils Cross-platform Rust rewrite of the

Yogesh Sharma 27 Dec 14, 2022
A demo repo to show KICS Github Action in Action

?? KICS GitHub Actions Demo This repository shows how KICS GitHub Action can be set and was fully inspired by the documentation on KICS GitHub Actions

Checkmarx 0 Nov 23, 2021
Repo for working on Cloud-based projects in Go

GoCloud Repo for working on Cloud-based projects in Go AWS checkout SDK: https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/gov2/s3 cd into /ho

Noah Gift 1 Jan 10, 2022