From 5466960a9fce97fde5bb43a65b52379eacbdaa10 Mon Sep 17 00:00:00 2001 From: mantre Date: Thu, 27 Jun 2024 18:52:36 +0800 Subject: [PATCH] doc: update API docs --- content/api/grpc.md | 790 +++++++++++++++++--------- content/api/json-rpc.md | 713 +++++++++++++++-------- static/swagger-ui/pactus.swagger.json | 449 ++++++++------- 3 files changed, 1229 insertions(+), 723 deletions(-) diff --git a/content/api/grpc.md b/content/api/grpc.md index 8f49dbf..397a276 100644 --- a/content/api/grpc.md +++ b/content/api/grpc.md @@ -87,6 +87,10 @@ Each PAC is equivalent to 1,000,000,000 or 109 NanoPACs. GetPublicKey +
  • + + GetTxPoolContent +
  • Network Service @@ -165,19 +169,19 @@ parameters.

    id - bytes + string - Transaction ID. + The unique ID of the transaction to retrieve. verbosity TransactionVerbosity - (Enum) Verbosity level for transaction details. + (Enum) The verbosity level for transaction details.
    Available values: @@ -194,70 +198,70 @@ parameters.

    block_height uint32 - Height of the block containing the transaction. + The height of the block containing the transaction. block_time uint32 - Time of the block containing the transaction. + The UNIX timestamp of the block containing the transaction. transaction TransactionInfo - Information about the transaction. + Detailed information about the transaction. transaction.id - bytes + string - Transaction ID. + The unique ID of the transaction. transaction.data - bytes + string - Transaction data. + The raw transaction data. transaction.version int32 - Transaction version. + The version of the transaction. transaction.lock_time uint32 - Lock time for the transaction. + The lock time for the transaction. transaction.value int64 - Transaction value in NanoPAC. + The value of the transaction in NanoPAC. transaction.fee int64 - Transaction fee in NanoPAC. + The fee for the transaction in NanoPAC. transaction.payload_type PayloadType - (Enum) Type of transaction payload. + (Enum) The type of transaction payload.
    Available values: