Accessing Bitcoin via Amazon Managed Blockchain (AMB): Supported JSON-RPCs Guide

·

This guide provides a comprehensive list of Bitcoin JSON-RPCs supported by Amazon Managed Blockchain (AMB) Access Bitcoin, along with their descriptions and usage notes.


Key Considerations Before Using AMB Access Bitcoin


Supported JSON-RPCs by Category

Blockchain RPCs

JSON-RPCDescription
getbestblockhashReturns the hash of the best (tip) block in the most-work fully validated chain.
getblockReturns block data at verbosity levels 0-3 (hex-encoded string to full transaction details including prevout inputs).
getblockchaininfoProvides various state information about blockchain processing.
getblockcountReturns the height of the most-work fully validated chain.
getblockfilterRetrieves BIP 157 content filters for specific blocks.
getblockhashReturns hash of the block at specified height in best-block-chain.
getblockheaderReturns serialized hex-encoded block header data or verbose header object.
getblockstatsComputes per-block statistics for given window (amounts in satoshis).
getchaintipsLists all known blockchain tips including main chain and orphaned branches.

👉 Explore advanced blockchain analytics with these RPC methods.


Raw Transaction RPCs

JSON-RPCDescription
createrawtransactionCreates transactions with specified inputs/outputs.
decoderawtransactionDecodes serialized hex-encoded transactions into JSON objects.
decodescriptDecodes hex-encoded scripts.
getrawtransactionRetrieves raw transaction data.
sendrawtransactionSubmits raw transactions to the network.
testmempoolacceptTests mempool acceptance of raw transactions against consensus rules.

Utility RPCs

JSON-RPCDescription
createmultisigCreates m-of-n multisignature addresses.
estimatesmartfeeEstimates fee rates (sat/kB) for confirmation targets using BIP 141 weight units.
validateaddressValidates Bitcoin address information.
verifymessageVerifies signed messages.

FAQ Section

Q: How does AMB Access Bitcoin handle rate limiting?

A: Default limit is 100 RPS per region per network type. Request quota increases through AWS Support with specific RPS requirements.

Q: What authentication method is required for JSON-RPC calls?

A: All requests must use AWS Sigv4 authentication with valid IAM credentials.

Q: Can I retrieve full transaction history using these RPCs?

A: While methods like getblock provide transaction data, AMB Access Bitcoin focuses on current chain state rather than archival data.

Q: Are there size restrictions for raw transactions?

A: Yes, the standard Bitcoin network rules apply (typically ≤400kB for SegWit transactions).

Q: How accurate are fee estimates from estimatesmartfee?

A: Estimates reflect recent mempool conditions and include confidence intervals in the response.