Comments (11)
補充
listaccounts
的結果是
{ "" : { }, "Reki" : { } }
from gcoin-community.
getassetinfo無法使用是怎樣的情況呢
我這邊看沒啥問題
from gcoin-community.
我是顯示如下:
./src/bitcoin-cli -gcoin getassetinfo
error: {"code":-1,"message":"getassetinfo\n\n\n\nReturn a JSON object of licenseinfo of color.\n\nArguments:\n1. \"color\" (numeric, required) The color\n\nResult:\n{\n \"version\" : n, (numeric) The version\n \"name\" : xxx, (string) The name\n \"description\" : xxx, (string) The description\n \"issuer\" : xxx, (string) The issuer name\n \"divisibility\" : true, (bool) The divisibility\n \"fee_type\" : n, (int) The fee type\n \"fee_rate\" : x.xx, (double) The fee rate\n \"fee_collector\" : xxx, (string) The fee collector address\n \"upper_limit\" : xxx, (numeric) The upper limit\n \"mint_schedule\" : false, (bool) Have mint schedule or not\n \"member_control\" : false, (bool) Have member control or not \n \"metadata_link\" : xxx, (string) Hyper link for the metadata \n \"metadata_hash\" : xxx, (string) Hash for the metadata \n}\n\nExamples:\n> bitcoin-cli getassetinfo \n> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\":\"curltest\", \"method\": \"getassetinfo\", \"params\": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/\n"}
from gcoin-community.
getassetinfo 後面參數接 color
from gcoin-community.
正好在弄先改一下
from gcoin-community.
謝謝告知
看起來getassetinfo
內容就是license info ??
from gcoin-community.
是的,getassetinfo
應該回傳該color所對應到的license info內容
from gcoin-community.
account這邊基本上應該是follow原本bitcoin上面的使用邏輯,gcoin對account這邊沒有太大的更動。
由於在你的流程裡面沒有很詳細的步驟,在keypool裡面沒有key時應該是沒有辦法直接getaccountaddress
的。
如果你有下keypoolrefill
的話,getaccountaddress
會幫你選一個key關聯到這個account並且把它當作這個account的代表key。setaccount
會把你指定的address關聯到這個account但不會把這個所謂的代表key換掉,只有在你使用了這個address之後才會再另外指定一個address把現在這個替換掉。如果需要看目前所有和這個account有關的address則是用getaddressesbyaccount
的指令來檢視。
from gcoin-community.
不好意思,我的流程簡述如下:
重新make一個ver. 1.1的gcoin node
bitcoind -gcoin -daemon
,./src/bitcoin-cli -gcoin
來下指令
[1]$keypoolrefill
[2]$getfixedaddress
回傳1Cj2ij
[3]$setaccount 1Cj2ij Reki
[4]$getaccountaddress Reki
回傳176gaG
[5]$listonewalletaddress
回傳176gaG
[6]$getaccount 176gaG
回傳Reki
[7]$getaccount 1Cj2ij
回傳Reki
[8]$getaddressesbyaccount Reki
回傳["176gaG", "1Cj2ij"]
因為我只有執行過一次setaccount
,
Reki
這個account name是在step [3]時才出現,並set給1Cj2ij
不太明白為何176gaG
也被set Reki上去就是了...
因為透過account可能可以用來管理address,所以希望能弄清楚一些。
from gcoin-community.
簡單來說getaccountaddress就是拿一把沒用過的key把它標成account(Reki)
你先呼叫過getaccountaddress了所以176gaG也因此被標成Reki.
from gcoin-community.
原來如此
是我會錯意了,以為getaccountaddress
是查詢用
from gcoin-community.
Related Issues (20)
- Multi-color support
- Address cannot be assigned as default address if it is assigned before HOT 1
- ReserveKey in CommitTransaction HOT 1
- maturity of type transaction
- standard transaction 只支援 x of 3的multisigaddress HOT 1
- Assertion `!hasModifier' failed.
- Confidential Transaction HOT 1
- rpc assignfixedaddress error HOT 1
- rpc assignfixedaddress returns error when assigning original fixed address
- Banned because of sending confidential tx HOT 1
- rpc getrawtransaction failed on confidential transaction
- gcoind not syncing
- Build the GCoin 這個步驟做完,在make會出現錯誤 HOT 2
- 移除order相關tx type
- Remove member-only and Activation mechanism
- Development process 的 doc/coding.md 遺失 HOT 2
- RPC should be able to return entire license list
- 投票以及license發放機制調整 HOT 1
- Document update
- New mining structure HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcoin-community.