API & Block Explorer for EarthCoin

API documentation

Welcome to the EarthCoin API server

Avaiable API commands:
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.
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:

Powered by Sando-explorer v.2.0   Ⓒ 2019