The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/internal/hmyapi
chao 00c2356b5e add tx type check; improve several efficiency issues 5 years ago
..
filters Merge conflicts 5 years ago
README.md hmy_blockNumber (#910) 6 years ago
addrlock.go new rpc framework 6 years ago
backend.go add tx type check; improve several efficiency issues 5 years ago
blockchain.go add tx type check; improve several efficiency issues 5 years ago
debug.go Ricl rpc (#880) 6 years ago
harmony.go Ricl rpc (#880) 6 years ago
net.go add comment 5 years ago
private_account.go Zerologging 5 years ago
public_account.go more rpc APIs. (#863) 6 years ago
sendtxargs.go fix warnings for better code 5 years ago
transactionpool.go fix comments by changing adr to addr 5 years ago
types.go Move header fields into private struct; expose them using getters/setters 5 years ago
util.go Merge remote-tracking branch 'origin/s3' 5 years ago

README.md

JSON RPC

JSSDK

FireStack-Lab/Harmony-sdk-core

JSON-RPC methods

  • net_listening - check if network is connected
  • hmy_protocolVersion - check protocol version
  • net_version - get network id
  • net_peerCount - peer count
  • hmy_gasPrice - return min-gas-price
  • hmy_estimateGas - calculating estimate gas using signed bytes
  • hmy_blockNumber - get latest block number
  • hmy_getBlockByHash - get block by block hash
  • hmy_getBlockByNumber
  • hmy_getUncleByBlockHashAndIndex - get uncle by block hash and index number
  • hmy_getUncleByBlockNumberAndIndex - get uncle by block number and index number
  • hmy_getUncleCountByBlockHash - get uncle count by block hash
  • hmy_getUncleCountByBlockNumber - get uncle count by block number
  • hmy_syncing - Returns an object with data about the sync status
  • hmy_coinbase - return coinbase address
  • hmy_mining - return if mining client is mining
  • hmy_hashrate - return current hash rate for blockchain
  • hmy_getBalance - get balance for account address
  • hmy_getTransactionCount - get nonce for account address
  • hmy_accounts - return accounts that lives in node
  • hmy_getTransactionReceipt - get transaction receipt by given transaction hash
  • hmy_sendRawTransaction - send transaction bytes(signed) to blockchain
  • hmy_sendTransaction - send transaction object(with signature) to blockchain
  • hmy_getBlockTransactionCountByHash - get transaction count of block by block hash
  • hmy_getBlockTransactionCountByNumber - get transaction count of block by block number
  • hmy_getTransactionByHash - get transaction object of block by block hash
  • hmy_getTransactionByBlockHashAndIndex - get transaction object of block by block hash and index number
  • hmy_getTransactionByBlockNumberAndIndex - get transaction object of block by block number and index number
  • hmy_sign - sign message using node specific sign method.
  • hmy_pendingTransactions - returns the pending transactions list.
  • hmy_call - call contract method
  • hmy_getCode - get deployed contract's byte code
  • hmy_getStorageAt - get storage position at a given address
  • hmy_getCompilers - DEPRECATED
  • hmy_compileLLL - DEPRECATED
  • hmy_compileSolidity - DEPRECATED
  • hmy_compileSerpent - DEPRECATED

Subscribes

  • hmy_getLogs - log subscriber
  • hmy_newFilter - creates a filter object, based on filter options
  • hmy_newBlockFilter - creates a filter in the node, to notify when a new block arrives
  • hmy_newPendingTransactionFilter - creates a filter in the node, to notify when new pending transactions arrive
  • hmy_getFilterChanges - polling method for a filter
  • hmy_getFilterLogs - returns an array of all logs matching filter with given id.
  • hmy_uninstallFilter - uninstalls a filter with given id

Others, not very important for current stage of work

  • web3_clientVersion
  • web3_sha3
  • hmy_getWork
  • hmy_submitWork
  • hmy_submitHashrate
  • hmy_getProof
  • db_putString
  • db_getString
  • db_putHex
  • db_getHex

SHH Whisper Protocol

The shh is for the whisper protocol to communicate p2p and broadcast

  • shh_post
  • shh_version
  • shh_newIdentity
  • shh_hasIdentity
  • shh_newGroup
  • shh_addToGroup
  • shh_newFilter
  • shh_uninstallFilter
  • shh_getFilterChanges
  • shh_getMessages