Skip to content

Original Gcoin client API calls list

lbyyy edited this page Jul 31, 2017 · 5 revisions

Table of Contents

Blockchain

getaddrmempool ( verbose )

getbestblockhash

getblock "hash" ( verbose )

blockchaininfo

getblockcount

getblockhash index

getchaintips

getdifficulty

getmempoolinfo

getrawmempool ( verbose )

gettxout "txid" n ( includemempool )

gettxoutsetinfo

verifychain ( checklevel numblocks )

verifytxoutproof "proof"

Control

getinfo

help ( "command" )

reset warning

stop

Generating

getgenerate

setgenerate generate ( genproclimit )

Mining

getblocktemplate ( "jsonrequestobject" )

getmininginfo

getnetworkhashps ( blocks height )

prioritisetransaction <txid></txid> <priority></priority> <fee></fee>

submitblock "hexdata" ( "jsonparametersobject" )

Network

addnode "node" "add|remove|onetry"

bannode "nodeid"

disconnectnode "node"

getaddednodeinfo dns ( "node" )

getbanlist

getconnectioncount

getmemberlist

getnettotals

getnetworkinfo

getorderlist

getpeerinfo

getrtts

gettotalbandwidth

permitnode "node" "add|remove|onetry"

ping

Rawtransactions

createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,...}

decoderawtransaction "hexstring"

decodescript "hex"

getrawtransaction "txid" ( verbose )

sendrawtransaction "hexstring" ( allowhighfees )

signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...["privatekey1",...]]sighashtype )

Util

createmultisig nrequired ["key",...]

validateaddress "gcoinaddress"

verifymessage "gcoinaddress" "signature" "message"

Wallet

addmultisigaddress nrequired ["key",...] ( "account" )

backupwallet "destination"

cancelorder "txid

decodelicenseinfo "string"

dumpprivkey "bitcoinaddress"

dumpwallet "filename"

encodelicenseinfo "license_info" ( "comment" "comment-to" )

encryptwallet "passphrase"

gennewaddress( "account" )

getaccount "bitcoinaddress"

getaccountaddress "account"

getaddressbalance "bitcoin-address" ( minconf )

getaddressesbyaccount "account"

getbalance ( "account" minconf includeWatchonly )

getcolorbalance color ( "account" minconf includeWatchonly )

getfixedaddress( "account" )

getlicenseinfo

getlicenselist

getnewaddress( "account" )

getnewaddressamount( "account" )

getrawchangeaddress

getreceivedbyaccount "account" ( minconf )

getreceivedbyaddress "bitcoinaddress" ( minconf )

gettransaction "txid" ( includeWatchonly )

getunconfirmedbalance

getunconfirmedcolorbalance

getwalletinfo

hdaddchain (<chainpath></chainpath>|default) (<masterseed_hex></masterseed_hex>)

hdgetinfo

hdkeypoolrefill ( newsize )

hdsetchain <chainid></chainid>

importaddress "address" ( "label" rescan )

importprivkey "bitcoinprivkey" ( "label" rescan )

importwallet "filename"

keypoolrefill ( newsize )

listaccounts ( minconf includeWatchonly)

listaddressgroupings

listlockunspent

listonewalletaddress address-rank

listreceivedbyaccount ( minconf includeempty includeWatchonly)

listreceivedbyaddress ( minconf includeempty includeWatchonly)

listsinceblock ( "blockhash" target-confirmations includeWatchonly)

listtransactions ( "account" count from includeWatchonly)

listunspent ( minconf maxconf ["address",...] )

listwalletaddress "group-of-addresses" "number-of-addresses"

lockunspent unlock [{"txid":"txid","vout":n},...]

match

mint "amount" color

mintadmin "amount" color `(remove after Gcoin 1.2)`

mintforlicense `(add after Gcoin 1.2)`

mintforminer `(add after Gcoin 1.2)`

move "fromaccount" "toaccount" amount ( minconf "comment" )

sendbanvotetoaddress "bitcoinaddress" ( "comment" "comment-to" )

sendfrom "fromaddress" "tobitcoinaddress" amount color ( "comment" "comment-to" )

sendfrom "fromaddress" "tobitcoinaddress" amount color ( "comment" "comment-to" )

sendlicensetoaddress "bitcoinaddress" color ( "comment" "comment-to" )

sendmany "fromaccount" {"address":amount,...} color ( minconf "comment" ["address",...] )

sendorder "sell_amount" sell_color" buy_amount" buy_color

sendtoaddress "bitcoinaddress" amount color ( "comment" "comment-to" subtractfeefromamount )

sendvotetoaddress "bitcoinaddress" ( "comment" "comment-to" ) `(remove after Gcoin 1.2)`

addalliance "pubkey" `add after Gcoin 1.2`

setaccount "bitcoinaddress" "account"

settxfee amount

signmessage "bitcoinaddress" "message"