Nodechain is a service that allows you to create nodes on a blockchain and connect to them natively through APIs. The goal is to allow the user to build their own nodes natively without having to rely on external services.
GetTransaction method reuses BTC apirpc methods. GetBlockByHash, GetBlockByNumber and GetTransactionHex can receive a verbose parameter to be compatible with GetTransaction and not duplicate code with RPC queries
Fixes #88
Dependencies (if any)
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
GetBlockByNumber with less grade of verbosity
Request
Description
GetTransaction method reuses BTC apirpc methods. GetBlockByHash, GetBlockByNumber and GetTransactionHex can receive a verbose parameter to be compatible with GetTransaction and not duplicate code with RPC queries
Fixes #88
Dependencies (if any)
Type of change
How Has This Been Tested?
GetBlockByNumber with less grade of verbosity Request
Response
GetBlockByNumber with medium level of verbosity
Request
Response
GetBlockByNumber with hight grade of verbosity (Default)
Request
Response
GetTransactionHex with verbosity mode (Default)
Request
Response
GetTransactionHex with verbosity disable
Request
Response
Test Configuration:
sw_vers
): macOS 12.0.1uname -sr
): Darwin 21.1.0uname -m
): x86_64Related PR or Docs PR
Docs PR related # Other PR related #
Good practices to consider