Skip to main content

Net API

Get Network Information

GET /api/net/networkInfo

Responses

HTTP CodeDescriptionSchema
200SuccessGetNetworkInfoOutput

Produces

  • text/plain; v=1.0
  • application/json; v=1.0
  • text/json; v=1.0
  • application/x-protobuf; v=1.0

Tags

  • Net

Add Peer

POST /api/net/peer

Parameters

TypeNameSchema
BodyinputAddPeerInput

Responses

HTTP CodeDescriptionSchema
200Successboolean
401Unauthorized

Security

  • Basic Authentication

Consumes

  • application/json-patch+json; v=1.0
  • application/json; v=1.0
  • text/json; v=1.0
  • application/*+json; v=1.0
  • application/x-protobuf; v=1.0

Produces

  • text/plain; v=1.0
  • application/json; v=1.0
  • text/json; v=1.0
  • application/x-protobuf; v=1.0

Tags

  • Net

Remove Peer

DELETE /api/net/peer

Parameters

TypeNameDescriptionSchema
Queryaddressip addressstring

Responses

HTTP CodeDescriptionSchema
200Successboolean
401Unauthorized

Security

  • Basic Authentication

Produces

  • text/plain; v=1.0
  • application/json; v=1.0
  • text/json; v=1.0
  • application/x-protobuf; v=1.0

Tags

  • Net

Get Peers Info

GET /api/net/peers

Parameters

TypeNameDescriptionSchemaDefault
QuerywithMetricsboolean"false"

Responses

HTTP CodeDescriptionSchema
200SuccessPeerDto array

Produces

  • text/plain; v=1.0
  • application/json; v=1.0
  • text/json; v=1.0
  • application/x-protobuf; v=1.0

Tags

  • BlockChain

Get the Current Status of a Transaction

GET /api/blockChain/transactionResult

Parameters

TypeNameSchemaDescriptionRequired
QuerytransactionIdstringTransaction IDNo

Responses

HTTP CodeDescriptionSchema
200SuccessTransactionResultDto

Produces

  • text/plain; v=1.0
  • application/json; v=1.0
  • text/json; v=1.0
  • application/x-protobuf; v=1.0

Tags

  • BlockChain

Definitions

AddPeerInput

NameSchemaDescription
Addressstringip address (optional)

BlockBodyDto

NameSchemaDescription
Transactionsstring[]array of strings (optional)
TransactionsCountinteger (int32)integer (optional)

BlockDto

NameSchemaDescription
BlockHashstringstring (optional)
BodyBlockBodyDtoblock body (optional)
HeaderBlockHeaderDtoblock header (optional)
BlockSizeinteger (int32)integer (optional)

BlockHeaderDto

NameSchemaDescription
Bloomstringstring (optional)
ChainIdstringstring (optional)
Extrastringstring (optional)
Heightinteger (int64)integer (optional)
MerkleTreeRootOfTransactionsstringstring (optional)
MerkleTreeRootOfWorldStatestringstring (optional)
MerkleTreeRootOfTransactionStatestringstring (optional)
PreviousBlockHashstringstring (optional)
SignerPubkeystringstring (optional)
Timestring (date-time)string (optional)

BlockStateDto

NameSchemaDescription
BlockHashstringstring (optional)
BlockHeightinteger (int64)integer (optional)
Changesmap of stringsmap (optional)
Deletesstring[]array of strings (optional)
PreviousHashstringstring (optional)

ChainStatusDto

NameSchemaDescription
BestChainHashstringstring (optional)
BestChainHeightinteger (int64)integer (optional)
Branchesmap of strings and integers (int64)map (optional)
ChainIdstringstring (optional)
GenesisBlockHashstringstring (optional)
GenesisContractAddressstringstring (optional)
LastIrreversibleBlockHashstringstring (optional)
LastIrreversibleBlockHeightinteger (int64)integer (optional)
LongestChainHashstringstring (optional)
LongestChainHeightinteger (int64)integer (optional)
NotLinkedBlocksmap of stringsmap (optional)

CreateRawTransactionInput

NameSchemaDescription
Fromstringfrom address (required)
MethodNamestringcontract method name (required)
Paramsstringcontract method parameters (required)
RefBlockHashstringrefer block hash (required)
RefBlockNumberinteger (int64)refer block height (required)
Tostringto address (required)

CreateRawTransactionOutput

NameSchemaDescription
RawTransactionstringstring (optional)

ExecuteRawTransactionDto

NameSchemaDescription
RawTransactionstringraw transaction string (optional)
Signaturestringsignature string (optional)

ExecuteTransactionDto

NameSchemaDescription
RawTransactionstringraw transaction string (optional)

GetNetworkInfoOutput

NameSchemaDescription
Connectionsinteger (int32)integer (optional)
ProtocolVersioninteger (int32)integer (optional)
Versionstringstring (optional)

GetTransactionPoolStatusOutput

NameSchemaDescription
Queuedinteger (int32)integer (optional)
Validatedinteger (int32)integer (optional)

LogEventDto

NameSchemaDescription
Addressstringstring (optional)
Indexedstring[]array of strings (optional)
Namestringstring (optional)
NonIndexedstringstring (optional)

MerklePathDto

NameSchemaDescription
MerklePathNodesMerklePathNodeDto[]array of MerklePathNodeDto (optional)

MerklePathNodeDto

NameSchemaDescription
Hashstringstring (optional)
IsLeftChildNodebooleanboolean (optional)

MinerInRoundDto

NameSchemaDescription
ActualMiningTimesstring[]array of strings (date-time) (optional)
ExpectedMiningTimestring (date-time)string (date-time) (optional)
ImpliedIrreversibleBlockHeightinteger (int64)integer (int64) (optional)
InValuestringstring (optional)
MissedBlocksinteger (int64)integer (int64) (optional)
Orderinteger (int32)integer (int32) (optional)
OutValuestringstring (optional)
PreviousInValuestringstring (optional)
ProducedBlocksinteger (int64)integer (int64) (optional)
ProducedTinyBlocksinteger (int32)integer (int32) (optional)

PeerDto

NameSchemaDescription
BufferedAnnouncementsCountinteger (int32)integer (int32) (optional)
BufferedBlocksCountinteger (int32)integer (int32) (optional)
BufferedTransactionsCountinteger (int32)integer (int32) (optional)
ConnectionTimeinteger (int64)integer (int64) (optional)
Inboundbooleanboolean (optional)
IpAddressstringstring (optional)
ProtocolVersioninteger (int32)integer (int32) (optional)
RequestMetricsRequestMetric[]array of RequestMetric (optional)
ConnectionStatusstringstring (optional)
NodeVersionstringstring (optional)

This structure should provide a clear overview of each variable's name, schema, and description. Let me know if you need any further adjustments!

RequestMetric

Name: RequestMetric

NameSchemaDescription
Infostringoptional
MethodNamestringoptional
RequestTimeTimestampoptional
RoundTripTimeinteger (int64)optional

RoundDto

Name: RoundDto

NameSchemaDescription
ConfirmedIrreversibleBlockHeightinteger (int64)optional
ConfirmedIrreversibleBlockRoundNumberinteger (int64)optional
ExtraBlockProducerOfPreviousRoundstringoptional
IsMinerListJustChangedbooleanoptional
RealTimeMinerInformation< string, MinerInRoundDto >optional
RoundIdinteger (int64)optional
RoundNumberinteger (int64)optional
TermNumberinteger (int64)optional

SendRawTransactionInput

Name: SendRawTransactionInput

NameSchemaDescription
ReturnTransactionbooleanreturn transaction detail optional
Signaturestringoptional
Transactionstringraw transaction

SendRawTransactionOutput

Name: SendRawTransactionOutput

NameSchemaDescription
TransactionTransactionDtooptional
TransactionIdstringoptional

SendTransactionInput

Name: SendTransactionInput

NameSchemaDescription
RawTransactionstringraw transaction

SendTransactionOutput

Name: SendTransactionOutput

NameSchemaDescription
TransactionIdstringoptional

SendTransactionsInput

Name: SendTransactionsInput

NameSchemaDescription
RawTransactionsstringraw transactions

TaskQueueInfoDto

Name: TaskQueueInfoDto

NameSchemaDescription
Namestringoptional
Sizeinteger (int32)optional

Timestamp

Name: Timestamp

NameSchemaDescription
Nanosinteger (int32)optional
Secondsinteger (int64)optional

TransactionDto

Name: TransactionDto

NameSchemaDescription
Fromstringoptional
MethodNamestringoptional
Paramsstringoptional
RefBlockNumberinteger (int64)optional
RefBlockPrefixstringoptional
Signaturestringoptional
Tostringoptional

TransactionResultDto

Name: TransactionResultDto

NameSchemaDescription
BlockHashstringoptional
BlockNumberinteger (int64)optional
Bloomstringoptional
Errorstringoptional
Logs< LogEventDto >optional
ReturnValuestringoptional
Statusstringoptional
TransactionTransactionDtooptional
TransactionIdstringoptional
TransactionSizeinteger (int32)optional

CalculateTransactionFeeInput

Name: CalculateTransactionFeeInput

NameSchemaDescription
RawTransactionstringoptional

CalculateTransactionFeeOutput

Name: CalculateTransactionFeeOutput

NameSchemaDescription
Successbooloptional
TransactionFeeDictionary<string, long>optional
ResourceFeeDictionary<string, long>optional