GRPC Endpoint - zoobc/zoobc-core GitHub Wiki

GRPC endpoint

There ar many GRPC endpoints owned by zoobc, Allowing app clients like wallet and explore consume for a list of record or single record and also some of grpc service have an authentication that only the owner can access the critical/secured data.

  1. Account Balance:
    • GetAccountBalance:
      Get single account_balance record, and has request fields:
    AccountAddress bytes
    
  2. Account Dataset:
    • GetAccountDataset:
      Get single account_dataset record, and has request fields:
    Property string
    RecipientAccountAddress bytes
    
    • GetAccountDatasets:
      Get list of account_dataset records, and has request fields:
    Property string
    Value string
    RecipientAccountAddress bytes
    SetterAccountAddress bytes
    Height uint32
    Pagination *Pagination
    
  3. Account Ledger:
    • GetAccountLedgers:
      Get list of account_legder records and it might be the latest version, and has request fields:
    AccountAddress bytes
    EventType EventType
    TransactionID int64
    TimestampStart uint64
    TimestampEnd uint32
    Pagination *Pagination
    
  4. Block:
    • GetBlockByID:
      Get single block record specific by ID and also contain things that refer to it, and has request fields:
    ChainType ChainType
    ID int64
    
    • GetBlockByHeight:
      Get single block record specific by height and also contain things that refer to it, and has request fields:
    ChainType ChainType
    Height uint32
    
    • GetBlocks:
      Get list of block records, and has request fields:
    ChainType ChainType
    Count uint32
    Height uint32
    
  5. Escrow Transaction:
    • GetEscrowTransaction:
      Get single escrow_transaction record and has request fields:
    ID int64
    
    • GetEscrowTransactions:
      Get list of escrow_transaction records, and has request fields:
    ApproverAddress bytes
    ID int64
    Statuses []*EscrowStatus
    BlockHeightStart uint32
    BlockheightEnd uint32
    Pagination *Pagination
    
  6. Multisig Transaction:
    • GetPendingTransactions:
      Get list of pending_transaction records and has request fields:
    SenderAddress bytes
    Status PendingTransactionStatus
    Pagination Pagination
    
    • GetPendingTransactionDetailByTransactionHash:
      Get single pending_transaction record and also contain things that refer to it like MultisigInfo and PendingSignatures, and has request fields:
    TransactionHashHex string
    
    • GetMultisignatureInfo:
      Get list of multisignature_info records and also has request fields:
    MultisigAddress bytes
    Pagination *Pagination
    
  7. Mempool Transaction:
    • GetMempoolTransaction:
      Get single mempool record and has request fields:
    ChainType ChainType
    Params {
        ID int64
    }
    
    • GetMempoolTransactions:
      Get list of mempool records, and has request fields:
    ChainType ChainType
    Params {
        TimestampStart int64
        TimestampEnd int64
        Address bytes
        Pagination *Pagination
    }