Copyright 2016-2017 Toons, Copyright 2017 ARK, MIT licence
Open a terminal and type :
sudo pip install arky
If you work with python3
sudo pip3 install arky
From development version
sudo -H pip install git+https://github.com/ArkEcosystem/arky.git
If you work with python3
sudo -H pip3 install git+https://github.com/ArkEcosystem/arky.git
Run a command as Administrator and type :
pip install arky
For development version
pip install git+https://github.com/ArkEcosystem/arky.git
api package
api package allows developpers to send requests to the blockchain according
to ARK API. For security reason only GET methods are implemented in
api package.
>>> from arky import api
>>> api.use("ark")
>>> api.Account.getAccount("AUahWfkfr5J4tYakugRbfow7RWVTK35GPW")
{'account': {'balance': '2111396549423', 'secondSignature': 0, 'u_multisignatures': [], 'multisignat
ures': [], 'unconfirmedSignature': 0, 'address': 'AUahWfkfr5J4tYakugRbfow7RWVTK35GPW', 'publicKey':
'02c232b067bf2eda5163c2e187c1b206a9f876d8767a0f1a3f6c1718541af3bd4d', 'unconfirmedBalance': '2111396
549423', 'secondPublicKey': None}, 'success': True}More on arky.api ?
>>> help(api)core module
>>> from arky import core
>>> from arky import api
>>> api.use("ark")core module allows developpers to access core functions.
>>> keys = core.getKeys("secret")
>>> keys.public.hex()
'03a02b9d5fdd1307c2ee4652ba54d492d1fd11a7d1bb3f3a44c4a05e79f19de933'
>>> keys.wif
'SB3BGPGRh1SRuQd52h7f5jsHUg1G9ATEvSeA7L5Bz4qySQww4k7N'
>>> core.getAddress(keys)
'AJWRd23HNEhPLkK1ymMnwnDBX2a7QBZqff'
>>> tx = core.Transaction(amount=100000000, recipientId="AQpqHHVFfEgwahYja9DpfCrKMyMeCuSav4")
>>> tx.sign("secret")
>>> tx.serialize()
{'recipientId': 'AQpqHHVFfEgwahYja9DpfCrKMyMeCuSav4', 'timestamp': 20832330, 'amount': 100000000, 'a
sset': {}, 'senderPublicKey': '03a02b9d5fdd1307c2ee4652ba54d492d1fd11a7d1bb3f3a44c4a05e79f19de933',
'fee': 10000000, 'signature': '304402201dbf20a62d3411c6d000b691edf3ed50c34baa96b94dedf70e2d512b9f917
8250220475869560dd9740e2c324972be3cb2690e5fdd27b1cccf6dcd8fb325f52f8f25', 'type': 0, 'id': '16683123
258705133772'}
>>> api.sendTx(tx)More on arky.core ?
>>> help(core)python -m arky-cli
>>> from arky import cli
@ark>>> cli.start()
### arky-cli v2.0 - [arky 0.2.1 embeded]
Available commands: escrow, network, delegate, account
hot@dark/ >Arky script
Here is an example of arky script
network use dark account link XxxxxxxXxxxXXxxxxXxxxxxxxXXxxxxx send 40% DTywx2qNfefZZ2Z2bjbugQgUML7yhYEatX
To launch it :
python -m arky-cli /path/to/arky/script
or
>>> from arky import cli
>>> cli.launch("path/to/arky/script")man pages
Install requirements
pip install -e .
or
pip install -r requirements.txt
Toons <moustikitos@gmail.com>
Toons Ark address: AUahWfkfr5J4tYakugRbfow7RWVTK35GPW
Toons Bitcoin address: 3Jgib9SQiDLYML7QKBYtJUkHq2nyG6Z63D
Show gratitude on Gratipay:
Vote for Toons' delegate arky
0.4.0
- cli commmand cleanup
- Some minors correction about the whitespace, indentation for PEP8 specifications.
- Removed some unused imports.
utilpkg:getTokenPriceimprovements.getArkFiatPriceimplemented.getArkPriceFromCryptoCompareimplemented.getArkPriceFromCryptoCompareBisimplemented.getAllCoinsFromCryptoCompareimplemented.getArkPriceFromBittreximplemented.getArkPriceFromCryptopiaimplemented.getArkPriceFromLitebitimplemented.getArkPriceFromCryptomateimplemented.
testpkg:- All of the functions implemented inside the util pkg are tested.
miscpkg:- Fixed the ARK2USD and USD2ARK functions.
0.3.1
stick-arkyreleased : bring all arky every where on your usb stickkapumainnet addedclipkg:- arky-cli can now execute script
- code tweak
inputinstead ofgetpassfor secondsecret (encoding issue)delegatemodule improvement- added
network stakingandnetwork updatecommand
uipkg added: this is arky lite walletutilpkg:coinmarketcapapi updateapipkg:getmethod use different seed on each call- Fees values loaded from blockchain
- Default timeout changed to 10s
0.2.3
coremod :- toonsbuf protocol implemented
- osx compatibility issue fix
clican now execute arky scripts
0.2.2
- pypi wheel universall fix
- wiki updated
clipkg:- added
network wifcommand - added
network browsecommand - fixed
vote -d <delegate>behaviour - minor bugfixes and improvements
- added
util.statsmod:getHistoryfix- added
plot2D - added
getBalanceHistory - added
getVoteHistory
apipkg:- improvement for
postDataandbroadcastSerial - added autoconf feature
- improvement for
0.2.1
clipkg:- added network command set
- added delegate command set
- added account command set
apipkg:- only up-to-date peers selected for broadcasting
0.2.0
- custom network configuration file added (
ark.netanddark.netavailable) - added
clipkg: escrowmodule availabel
- added
utilpkg:- added
statsmodule
- added
0.1.9
apipkg:- minor bugfixes
- offline mode added
- better connection protocol
0.1.8
- relative import fix for
python 2.x - updated testnet and devnet seeds
apipkg:api.getimprovementapi.useimprovement, can now connect to a custom seedapi.broadcastimprovement- multiple transaction requests enabled
coremod:- removed
sendTransaction(useapi.sendTxinstead)
- removed
0.1.7
apipkg:- documentation (docstring)
- added
api.send_txandapi.broadcast api.getcode improvement- bugfix on requests header
portfield value
coremod:- removed
checkStrictDERcalls incore.Transaction.sign
- removed
0.1.6
apipkg : improve peer connection
0.1.5
walletmod : code improvementutilpkg : https bug fix in frozen modeapipkg : update
0.1.4
- first mainnet release