Skip to content

List of handlers & endpoints gosdk

Dhruv Patel edited this page Nov 1, 2021 · 9 revisions

List of endpoints that makes requests from 0chain/gosdk pkg zcncore to Miners, Sharders, Chain.

gosdk calls to Miners

Endpoints Method Client(s) Call Handler URL
`/v1/client/put` POST
`/v1/client/get` GET
`/v1/transaction/put` POST

gosdk calls to Sharders

Endpoints Method Client(s) Call Handler URL
`/v1/transaction/get/confirmation?hash=` GET
`/v1/client/get/balance?client_id=` GET
`/v1/screst/` + InterestPoolSmartContractAddress + `/getLockConfig` GET
`/v1/screst/` + InterestPoolSmartContractAddress + `/getPoolsStats?client_id=` GET
`/v1/block/get?` GET
`/v1/block/magic/get?` GET
`/v1/block/get/latest_finalized` GET
`/v1/block/get/latest_finalized_magic_block` GET
`/v1/chain/get/stats` GET
= = = =
`/v1/screst/` + VestingSmartContractAddress + `/getConfig` GET
`/v1/screst/` + VestingSmartContractAddress + `/getPoolInfo` GET
`/v1/screst/` + VestingSmartContractAddress + `/getClientPools` GET
= = = =
`/v1/screst/` + MinerSmartContractAddress + `/nodeStat` GET
`/v1/screst/` + MinerSmartContractAddress + `/nodePoolStat` GET
`/v1/screst/` + MinerSmartContractAddress + `/configs` GET
`/v1/screst/` + MinerSmartContractAddress + `/getUserPools` GET
`/v1/screst/` + MinerSmartContractAddress + `/getMinerList` GET
`/v1/screst/` + MinerSmartContractAddress + `/getSharderList` GET
= = = =
`/v1/screst/" + StorageSmartContractAddress + "/getConfig"` GET
`/v1/screst/" + StorageSmartContractAddress + "/getChallengePoolStat"` GET
`/v1/screst/" + StorageSmartContractAddress + "/allocation"` GET
`/v1/screst/" + StorageSmartContractAddress + "/allocations"` GET
`/v1/screst/" + StorageSmartContractAddress + "/getReadPoolStat"` GET
`/v1/screst/" + StorageSmartContractAddress + "/getStakePoolStat"` GET
`/v1/screst/" + StorageSmartContractAddress + "/getUserStakePoolStat"` GET
`/v1/screst/" + StorageSmartContractAddress + "/getblobbers"` GET
`/v1/screst/" + StorageSmartContractAddress + "/getBlobber"` GET
`/v1/screst/" + StorageSmartContractAddress + "/getWritePoolStat"` GET

gosdk calls to Chain

Endpoints Method Client(s) Call Handler URL
`/v1/exampe/endpoint` GET

Template

to make new row use:

<tr>
  <!-- enpoint -->
  <td>`/v1/exampe/endpoint`</td>
  <!-- method -->
  <td>GET</td>
  <!-- client calls -->
  <td>
    <ul>
      <li><a href="#FuncURL">FuncName()</a></li>
    </ul>
  </td>
  <!-- handler url -->
  <td>
    <ul>
      <li><a href="#HandlerURL">HandlerName()</a></li>
    </ul>
  </td>
</tr>