API & Block Explorer for EarthCoin

  
API documentation

Welcome to the EarthCoin API server


Avaiable API commands:
CommandAliasDescriptionParameters
getblockchaininfogetinfoReturns an object containing various state info regarding blockchain processing.-
getpeerinfoReturns data about each connected network node as a json array of objects.-
getdifficultyReturns the proof-of-work difficulty as a multiple of the minimum difficulty.-
getblockcountgetheightReturns the number of blocks in the longest blockchain.-
getblockhashReturns hash of block in best-block-chain at height provided.Block_height
getbestblockhashReturns the hash of the best (tip) block in the longest blockchain.-
getblockblockIf verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'. If verbosity is 1, returns an Object with information about block . If verbosity is 2, returns an Object with information about block and information about each transaction.Block_hash, Verbosity
getrawtransactionReturn the raw transaction data.Transaction_ID
txReturn the transaction in a decoded format.Transaction_ID
gettxoutReturns details about an unspent transaction output.Transaction_ID, Output_index
sendrawtransactionSubmits raw transaction (serialized, hex-encoded) to local node and network.Signed_raw_transaction
sendcoinsWarning: unsafe method. Your private key is exposed. Use on your own risk. Suggested safe way is create and sign a transaction on the client side and send it using sendrawtransaction method. This function check the balance on specified Sender_address, try to create a transaction, sign it with provided Private_key and broadcast it into the network.Receiver_address, Value_to_send, Sender_address, Private_key
validateaddressReturn information about the given earthcoin address.Address
getnetworkhashpsReturns the estimated network hashes per second based on the last n blocks.-
getbalanceReturns the total balance hold on an address.Address
unspentutxoScans the unspent transaction output set for entries that match certain output descriptors.Address1, Address2, ...
checktransactioncheckScan the blockchain and the memory pool for a transaction matching specified parameters. If succeeds, it returns the transaction details.
Parameters:
Address - mandatory. Transaction must be sent to this address. Value - optional. If set, transaction value must be equal or higher. Transaction_comment - optional. If set, txComment must match. Order_height - optional. If set, transction block height must be equal or higher. If not set, only top 60 block are scanned. Expiration_time - optional. If set, transction time must be no later than the specified number of minutes after the order. If not nes, default value of 60 minutes is used.
Address, Value, Transaction_comment, Order_height, Expiration_time


Common syntax:
http://[SERVER_ADDRESS]:[SERVER_PORT]/[COMMAND]/[PARAM1]/[PARAM2]/[PARAM3]
Examples:
http://api.eacpay.com:9000/getinfo
http://api.eacpay.com:9000/getblockhash/1000
http://api.eacpay.com:9000/getblock/ea7dd253f3ef1e1353728e92fa637368244ffcf46de9da76f57ed019182fb92f/2
http://api.eacpay.com:9000/unspent/en6bCHDGejFW2VdMkKZDCfyfzRUAujh6RA
http://api.eacpay.com:9000/check/ecGUjidXR9vfWZELZzJjWCpu9jbJ6guBAE/2/尝试中文/2887805/10

Powered by Sando-explorer v.2.0   Ⓒ 2019