Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
February 11, 2014, 02:59:46 PM |
|
CfB: Will everyone with at least 1000 Nxt be able to release an asset or will there be a manual validation prior to the issuasnce of the asset?
Everyone. No manual validation.
|
|
|
|
dawn
|
|
February 11, 2014, 03:01:16 PM |
|
I have 2 aliases with the same name
Not possible. Provide your account number please. What is possible is to reassign an alias. say I bought the alias "google", but I assigned a wrong URI to it. Then I would assign the alias again (with 1NXT fee) and change the URI. Only the owner of an alias can reassign it. Another possibility that could have happened to you is that you set the deadline too short. Say you set the deadline to 1 minute, and the next block gets created after 2 minutes, then your alias assignement gets cancelled because it was not included in a block before hitting deadline. Thanks a lot for your answer. That was also what I was thinking/understood. My account # is 18282429533886242938. The URI is exactly the same as the alias. Both aliases have now over 70 confirmations. PS: I'm using NXT Solaris client 1.7.0.20 (x64) and NRS 0.7.2.
|
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
February 11, 2014, 03:01:21 PM |
|
Cancel order in testnet does not seem to work for me. Bid placed using ClieNXT, tried to cancel with API: https://holms.cloudapp.net:6875/nxt?requestType=cancelBidOrder&secretPhrase=[SECRETPHRASE]&order=14239583640911742797&fee=1&deadline=1 {"transaction":"8601055425027365025"} Transaction keeps appearing as unknown: https://holms.cloudapp.net:6875/nxt?requestType=getTransaction&transaction=8601055425027365025 {"errorCode":5,"errorDescription":"Unknown transaction"} Bid still in order table: https://holms.cloudapp.net:6875/nxt?requestType=getBidOrderIds&asset=11862239544331900808×tamp=1 {"bidOrderIds":["13707244546342930361","14239583640911742797"]} Does testnet take this long in confirmations? Looks like the incorrect time/timezone issue.
|
|
|
|
nxtru
Newbie
Offline
Activity: 37
Merit: 0
|
|
February 11, 2014, 03:04:43 PM |
|
It's not a bug. It's a reassignment.
Perhaps if the alias is found to exist and not have been changed (in terms of the "data" part) then it shouldn't be broadcast as a tx at all? Yet another client-side check?
|
|
|
|
brooklynbtc
Sr. Member
Offline
Activity: 336
Merit: 250
AKA jefdiesel
|
|
February 11, 2014, 03:05:00 PM |
|
thanks for test coins,,. using ClientNXT
set up an asset, and tried to buy some, how many confirms does it take?
|
|
|
|
CIYAM
Legendary
Offline
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
|
|
February 11, 2014, 03:08:02 PM |
|
Yet another client-side check?
It makes sense that a client should such checks rather than the NRS itself - the server side is correct to assume "that you know what you are doing" so if you ask to re-assign an alias to the same value then as far as the server is concerned that is what you meant. The other way I guess it could be resolved would be to have a "second parameter" to the alias API that states whether it is "creating" or "updating" the alias.
|
|
|
|
brooklynbtc
Sr. Member
Offline
Activity: 336
Merit: 250
AKA jefdiesel
|
|
February 11, 2014, 03:09:22 PM |
|
If i issue an asset, it costs min 1000nxt as a FEE? or as an investment in the IPO?
Then I OWN all the shares correct? and can sell them as I want.
I have created 10 shares for choco salty balls. they are asking 100nxt each. Who wants some?
edit why am I getting not enough funds error to post ask orders on shares i created?
is this because I cancelled a previous ask order and have to wait for them to reconfirm to my account?
|
|
|
|
CIYAM
Legendary
Offline
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
|
|
February 11, 2014, 03:10:40 PM |
|
@CfB In regards to "malleability" I have seen that "sipa" has already created a potential BIP to try and "resolve" (as best as possible) the issue for Bitcoin.
Should we not consider trying to do the same for Nxt (am not sure whether the problem in Nxt is just parts of a tx that are not signed or whether the signatures themselves are malleable which I understand has been the major problem with Bitcoin)?
|
|
|
|
omo
|
|
February 11, 2014, 03:11:14 PM |
|
UPDATE: ClieNXT GUI version 0.0.5 [code name] AE testnet* this version solely works with testnet server http://holms.cloudapp.net:6874/ * Asset Exchange window has major features ------ Download ------ https://bitbucket.org/fmiboy/clienxt/downloads/clienxt_005.zip------ Usage ------ * Windows users unzip the archive and run Clienxt.jar file * Linux users unzip the archive and run in terminal ./clienxt.run &* Mac users unzip the archive and run in terminal ./clienxt.run & (not tested, working on creating *.app file or *.pkg installer) * Languages English, Russian only Asset Exchange window translations are missing. NB: don't use your own accounts on "testnet" click Unlock button to open new or existing accounts on "testnet" (unlock and watch if you have more accounts) go to Asset Exchange window and start Trading ------ Screenshots ------ All available Assets Issue Asset (fill all fields and Issue Asset, min. fee 1000) Transfer Asset (select account that is added in Unlock window, it will detect all available Assets with their amount, fill rest fields and Transfer Asset) My orders (all Ask and Bid orders for selected account) Context menu (select any Asset and right click) View Open orders (for selected Asset) Place Order (ask or bid order for selected Asset, enter price 100 that will be considered 1, minimum price is 100) Cancel Order (in My orders, you can select your order and right click to cancel order) Cancel order window (requires only secret Phrase of account that placed same order) Trade history (history of all trades for selected Asset) Please report bugs or feature request here: https://bitbucket.org/fmiboy/clienxt/issues?status=new&status=openOnce client is tested, we can use it tomorrow without an issue! Translators are very much welcome! The more languages we have the more people test Asset Exchange tomorrow. Translators can find word list in Bundle.Properties (everything right side of "=" needs translation) here: https://bitbucket.org/fmiboy/clienxt/src/0a35a05b7786b2c3cf1e69ca16c0bbd48d8f953c/src/clienxt/Bundle.properties?at=masterIf you like my work, donate nxt 13792774143018875909 and thank you very much for all supports. how to start the "place order" dialogue window? I can not find it
|
BTC:1Fu4TNpVPToxxhSXBNSvE9fz6X3dbYgB8q
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
February 11, 2014, 03:12:12 PM |
|
@CfB In regards to "malleability" I have seen that "sipa" has already created a potential BIP to try and "resolve" (as best as possible) the issue for Bitcoin.
Should we not consider trying to do the same for Nxt (am not sure whether the problem in Nxt is just parts of a tx that are not signed or whether the signatures themselves are malleable which I understand has been the major problem with Bitcoin)?
Maybe we should do it for Nxt too. Discuss or just vote?
|
|
|
|
Anon136
Legendary
Offline
Activity: 1722
Merit: 1217
|
|
February 11, 2014, 03:13:08 PM |
|
So what are people testing this thing on. Do we have an experimental nrs version out now that lets you issue test assets?
|
Rep Thread: https://bitcointalk.org/index.php?topic=381041If one can not confer upon another a right which he does not himself first possess, by what means does the state derive the right to engage in behaviors from which the public is prohibited?
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
February 11, 2014, 03:13:36 PM |
|
Quoted twice, coz one time is definitely not enough...UPDATE: ClieNXT GUI version 0.0.5 [code name] AE testnet* this version solely works with testnet server http://holms.cloudapp.net:6874/ * Asset Exchange window has major features ------ Download ------ https://bitbucket.org/fmiboy/clienxt/downloads/clienxt_005.zip------ Usage ------ * Windows users unzip the archive and run Clienxt.jar file * Linux users unzip the archive and run in terminal ./clienxt.run &* Mac users unzip the archive and run in terminal ./clienxt.run & (not tested, working on creating *.app file or *.pkg installer) * Languages English, Russian only Asset Exchange window translations are missing. NB: don't use your own accounts on "testnet" click Unlock button to open new or existing accounts on "testnet" (unlock and watch if you have more accounts) go to Asset Exchange window and start Trading ------ Screenshots ------ All available Assets Issue Asset (fill all fields and Issue Asset, min. fee 1000) Transfer Asset (select account that is added in Unlock window, it will detect all available Assets with their amount, fill rest fields and Transfer Asset) My orders (all Ask and Bid orders for selected account) Context menu (select any Asset and right click) View Open orders (for selected Asset) Place Order (ask or bid order for selected Asset, enter price 100 that will be considered 1, minimum price is 100) Cancel Order (in My orders, you can select your order and right click to cancel order) Cancel order window (requires only secret Phrase of account that placed same order) Trade history (history of all trades for selected Asset) Please report bugs or feature request here: https://bitbucket.org/fmiboy/clienxt/issues?status=new&status=openOnce client is tested, we can use it tomorrow without an issue! Translators are very much welcome! The more languages we have the more people test Asset Exchange tomorrow. Translators can find word list in Bundle.Properties (everything right side of "=" needs translation) here: https://bitbucket.org/fmiboy/clienxt/src/0a35a05b7786b2c3cf1e69ca16c0bbd48d8f953c/src/clienxt/Bundle.properties?at=masterIf you like my work, donate nxt 13792774143018875909 and thank you very much for all supports. how to start the "place order" dialogue window? I can not find it UPDATE: ClieNXT GUI version 0.0.5 [code name] AE testnet* this version solely works with testnet server http://holms.cloudapp.net:6874/ * Asset Exchange window has major features ------ Download ------ https://bitbucket.org/fmiboy/clienxt/downloads/clienxt_005.zip------ Usage ------ * Windows users unzip the archive and run Clienxt.jar file * Linux users unzip the archive and run in terminal ./clienxt.run &* Mac users unzip the archive and run in terminal ./clienxt.run & (not tested, working on creating *.app file or *.pkg installer) * Languages English, Russian only Asset Exchange window translations are missing. NB: don't use your own accounts on "testnet" click Unlock button to open new or existing accounts on "testnet" (unlock and watch if you have more accounts) go to Asset Exchange window and start Trading ------ Screenshots ------ All available Assets Issue Asset (fill all fields and Issue Asset, min. fee 1000) Transfer Asset (select account that is added in Unlock window, it will detect all available Assets with their amount, fill rest fields and Transfer Asset) My orders (all Ask and Bid orders for selected account) Context menu (select any Asset and right click) View Open orders (for selected Asset) Place Order (ask or bid order for selected Asset, enter price 100 that will be considered 1, minimum price is 100) Cancel Order (in My orders, you can select your order and right click to cancel order) Cancel order window (requires only secret Phrase of account that placed same order) Trade history (history of all trades for selected Asset) Please report bugs or feature request here: https://bitbucket.org/fmiboy/clienxt/issues?status=new&status=openOnce client is tested, we can use it tomorrow without an issue! Translators are very much welcome! The more languages we have the more people test Asset Exchange tomorrow. Translators can find word list in Bundle.Properties (everything right side of "=" needs translation) here: https://bitbucket.org/fmiboy/clienxt/src/0a35a05b7786b2c3cf1e69ca16c0bbd48d8f953c/src/clienxt/Bundle.properties?at=masterIf you like my work, donate nxt 13792774143018875909 and thank you very much for all supports. how to start the "place order" dialogue window? I can not find it
|
|
|
|
CIYAM
Legendary
Offline
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
|
|
February 11, 2014, 03:14:04 PM |
|
If it isn't too much to ask could people please refrain from embedding "screen snapshots" into their posts (and instead just put links).
I find it rather hard to read new posts when my screen keeps on jumping up because of screen snapshots in previous posts.
|
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
February 11, 2014, 03:14:32 PM |
|
So what are people testing this thing on. Do we have an experimental nrs version out now that lets you issue test assets?
http://holms.cloudapp.net:6874/Don't use ur real adddress here!
|
|
|
|
Passion_ltc
|
|
February 11, 2014, 03:14:49 PM |
|
Is it possible to issue fees for the AE? For example if Person A wants to buy 500 Assets and Person A pays 500 NXT for them, will it be possible for me as the asset owner to issue a fee of 5 NXT for this transaction?
afaik no. Basically you can only profit from an asset when you create it, or when you pay dividends (not payout 100%) Okay thanks.
|
|
|
|
achimsmile
Legendary
Offline
Activity: 1225
Merit: 1000
|
|
February 11, 2014, 03:15:40 PM |
|
I have 2 aliases with the same name
Not possible. Provide your account number please. What is possible is to reassign an alias. say I bought the alias "google", but I assigned a wrong URI to it. Then I would assign the alias again (with 1NXT fee) and change the URI. Only the owner of an alias can reassign it. Another possibility that could have happened to you is that you set the deadline too short. Say you set the deadline to 1 minute, and the next block gets created after 2 minutes, then your alias assignement gets cancelled because it was not included in a block before hitting deadline. Thanks a lot for your answer. That was also what I was thinking/understood. My account # is 18282429533886242938. The URI is exactly the same as the alias. Both aliases have now over 70 confirmations. PS: I'm using NXT Solaris client 1.7.0.20 (x64) and NRS 0.7.2. Ok, then everything is fine I can see that you assigned the same alias twice, so you only have 1 alias now. If unsure about your aliases, check: http://87.230.14.1/nxt/nxt.cgi?action=4000&acc=18282429533886242938
|
|
|
|
dawn
|
|
February 11, 2014, 03:18:17 PM |
|
Yet another client-side check?
It makes sense that a client should such checks rather than the NRS itself - the server side is correct to assume "that you know what you are doing" so if you ask to re-assign an alias to the same value then as far as the server is concerned that is what you meant. The other way I guess it could be resolved would be to have a "second parameter" to the alias API that states whether it is "creating" or "updating" the alias. The client displayed me an error about a timeout. I didn't tought it went trough. But after it billed me for both aliases (same alias, same URL). I'm not sure if I understand you correctly: This is only a client problem and the two same aliases I get displayed under "Account aliases" are a bug? I not got the same alias twice, but I payed for the same alias and URI a second time (for the assignement). Right?
|
|
|
|
joefox
|
|
February 11, 2014, 03:19:13 PM |
|
Hey gang,
It appears my "J-captain" is AWOL. I have created testNxt account 12008119612428572143 on the test-net. Would anyone be a pal and fire me some testcoin? I wanna buy some UNIGOTS!!
Thanks!
|
|
|
|
achimsmile
Legendary
Offline
Activity: 1225
Merit: 1000
|
|
February 11, 2014, 03:19:46 PM |
|
Quoted twice, coz one time is definitely not enough...
hilarious
|
|
|
|
opticalcarrier
|
|
February 11, 2014, 03:20:19 PM |
|
So what are people testing this thing on. Do we have an experimental nrs version out now that lets you issue test assets?
ive CLI'ed the API in a bash script if people dont want to use a 2nd party client. Not that is does not use https due to limitation with curl. so only ever use it on your localhost, except the testnet will be ok since it doesnt use real NXT or real accounts. And Im not 100% sure but I also believe it will only work with numbers/letters for passphrase as some characters hose up in curl # cat /usr/local/sbin/ncli #!/bin/bash
# to update for additional API calls, enter the new command in the array API, but be sure to # keep the case switch sections in the same order as in the API array #
API=(getAccount cancelBidOrder cancelAskOrder getBidOrder getAskOrder getAccountCurrentBidOrderIds getAccountCurrentAskOrderIds getBidOrderIds getAskOrderIds placeBidOrder placeAskOrder transferAsset getAsset getAssetIds issueAsset sendMoney getTransactionBytes getTransaction broadcastTransaction decodeToken getPeers getPeer getAccountId getAccountBlockIds getAccountPublicKey getAccountTransactionIds getBalance getGuaranteedBalance assignAlias getAliasId getAliasIds getAliasURI listAccountAliases sendMessage getBlock getConstants getMyInfo getState getTime decodeHallmark markHost)
if [ "$2" = "l" ]; then HOST="127.0.0.1" else HOST=$2 fi
if [ "$HOST" = "holms.cloudapp.net" ]; then PORT="6874" else PORT="7874" fi
case "$1" in
getAccount) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&account\=$3\×tamp=$4 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server account timestamp" fi ;;
cancelBidOrder) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&secretPhrase\=$3\&order\=$4\&fee\=$5\&deadline\=$6 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server passphrase orderID fee deadline" fi ;;
cancelAskOrder) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&secretPhrase\=$3\&order\=$4\&fee\=$5\&deadline\=$6 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server passphrase orderID fee deadline" fi ;;
getBidOrder) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&order\=$3 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server orderID" fi ;;
getAskOrder) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&order\=$3 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server orderID" fi ;;
getAccountCurrentBidOrderIds) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&account\=$3\&asset\=$4 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server account asset(optional)" fi ;;
getAccountCurrentAskOrderIds) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&account\=$3\&asset\=$4 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server account asset(optional)" fi ;;
getBidOrderIds) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&asset\=$3\×tamp\=$4 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server assetID timestamp" fi ;;
getAskOrderIds) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&asset\=$3\×tamp\=$4 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server assetID timestamp" fi ;;
placeBidOrder) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&secretPhrase=$3\&asset\=$4\&quantity\=$5\&price\=$6\&fee\=$7\&deadline\=$8 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server passphrase asset quantity price fee deadline " fi ;;
placeAskOrder) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&secretPhrase=$3\&asset\=$4\&quantity\=$5\&price\=$6\&fee\=$7\&deadline\=$8 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server passphrase asset quantity price fee deadline " fi ;;
transferAsset) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&secretPhrase=$3\&recipient\=$4\&asset\=$5\&quantity\=$6\&fee\=$7\&deadline\=$8 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server passphrase recipient asset quantity fee deadline " fi ;;
getAsset) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&asset\=$3 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server assetID " fi ;;
getAssetIds) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server " fi ;;
issueAsset) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&secretPhrase\=$3\&name\=$4\&description\=$5\&quantity\=$6\&fee\=$7 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server passphrase name description quantity fee " fi ;;
sendMoney) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&secretPhrase\=$3\&recipient\=$4\&amount\=$5\&fee=$6\&deadline\=$7 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server passphrase recipient amount fee deadline" fi ;;
getTransactionBytes) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&transaction\=$3 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server transactionID" fi ;;
getTransaction) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&transaction\=$3 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server transactionId" fi ;;
broadcastTransaction) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&transactionBytes\=$3 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server bytecode" fi ;;
decodeToken) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&website\=$3\&token\=$4 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server site.domain.tld 160characterToken" fi ;;
getPeers) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server" fi ;;
getPeer) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&peer\=$3 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server peerIPorDNS" fi ;;
getAccountId) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&secretPhrase\=$3 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server passphrase" fi ;;
getAccountBlockIds) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&account\=$3\×tamp\=$4 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server account timestamp" fi ;;
getAccountPublicKey) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&account\=$3 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server account" fi ;;
getAccountTransactionIds) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&account\=$3\×tamp\=$4 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server account timestamp" fi ;;
getBalance) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&account\=$3 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server account" fi ;;
getGuaranteedBalance) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&account\=$3\&numberOfConfirmations\=$4 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server account numberOfConfirmationsRequired" fi ;;
assignAlias) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&secretPhrase\=$3\&alias\=$4\&uri\=$5\&fee\=$6\&deadline\=$7 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server passphrase alias uri fee deadline" fi ;;
getAliasId) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&alias\=$3 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server alias" fi ;;
getAliasIds) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\×tamp\=$3 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server timestamp" fi ;;
getAliasURI) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&alias=$3 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server alias" fi ;;
listAccountAliases) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&account=$3 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server account" fi ;;
sendMessage) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&secretPhrase\=$3\&recipient\=$4\&fee=$5\&message\=$6\&deadline\=$7 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server passphrase recipient fee HEX deadline" echo "note the message is NOT sent encrypted. Encrypt yourself if required" fi ;;
getBlock) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&block=$3 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server blockID" fi ;;
getConstants) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server" fi ;;
getMyInfo) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server" fi ;;
getState) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server" fi ;;
getTime) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server" fi ;;
decodeHallmark) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&hallmark=$3 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server hallmarkString" fi ;;
markHost) if [[ "$HOST" != "help" && "$HOST" != "" ]]; then curl -s http://$HOST:$PORT/nxt\?requestType\=$1\&secretPhrase=$3\&host\=$4\&weight\=$5\&date\=$6 | python -m json.tool | sed -e 's/\([]"{}[,]\)//g' else echo "ncli $1 server passphrase IPaddressOrDNSname weight date" echo "where date format is YYYY-MM-DD" fi ;;
*) echo "" echo "Usage: ncli APIcmd server option1 option2..." echo "" echo "where server is IP/DNS or use l to query localhost" echo "and options are APIcmd specific" echo "API commands:"
for item in ${API[*]} do printf " %s\n" $item done echo "use 'ncli APIcmd help' for more help on a particular API command" ;;
esac
|
|
|
|
|