Chain APIs

API related to Orbitchain.

API request is limited before mainnet launched (2020 1Q).

  • GasLimit: 3000000 / tx

  • TxLimit: 50 / sec ( total limit 100 / sec)

  • DeployTxLimit : 1 / min

  • CallLimit : 120 / min

[POST] /v1/ozys/sendRawTransaction

  • Parameters

Name

Type

Description

rawTransaction

String

Hex string result of signed raw transaction

  • Return values

type

Descripttion

JSON String

transaction hash of raw transaction

  • Example

>curl -d "rawTransaction=0xa13.....9ab" [API_DOMAIN]/v1/ozys/sendRawTransaction
{"txHash" : "0xbb508f.......5bf"}

[POST] /v1/ozys/deployContract

  • Parameters

Name

Type

Description

rawTransaction

String

Hex string result of signed raw transaction

  • Return values

Type

Description

JSON String

transaction hash of raw transaction

  • Example

[GET] /call/getBlockNumber

  • Return values

Type

Description

JSON String

latest block number and block hash

  • Example

[GET] /call/tx/:thash

  • Return values

Type

Description

JSON String

Block and transaction information which transaction is included

  • Example

[POST] /call/getBalance

  • Parameters

Name

Type

Description

addr

String

Orbitchain wallet address

token

String

Orbitchain token address

  • Return values

Type

Description

JSON String

Json object which key is token address and value is token balance

  • Example

[POST] /call/getNextNonce

  • Parameters

Name

Type

Description

addr

String

Orbitchain wallet address

  • Return values

Type

Description

Hex

Wallet's next nonce

  • Example

[POST] /call/getBlock

  • Parameters

Name

Type

Description

blockNum

Integer

Target block number

txObj

Boolean

transaction object include or not

  • Return values

Type

Description

JSON String

Block information data

  • Example

[POST] /call/getBlockLogs

  • Parameters

Name

Type

Description

startNum

Integer

Start block number want to search

endNum

Integer

End block number want to search

parse

Boolean

Parse address or not

  • Return values

Type

Description

JSON String

blocks information with event logs

  • Example

[POST] /call/getFullBlock

  • Parameters

Name

Type

Description

blockNum

Integer

Target block number

  • Return values

Type

Description

JSON String

block information with events logs

  • Example

Last updated

Was this helpful?