{"openapi":"3.0.3","info":{"title":"psf-bch-api","version":"7.0.0","description":"OpenAPI projection generated from apiDoc annotations"},"servers":[{"url":"/"}],"paths":{"/v6/encryption/":{"get":{"tags":["Encryption"],"summary":"Service status","description":"Returns the status of the encryption service.","operationId":"EncryptionRoot","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/encryption/publickey/:address":{"get":{"tags":["Encryption"],"summary":"Get public key for a BCH address","description":"Searches the blockchain for a public key associated with a BCH address. Returns an object. If successful, the publicKey property will contain a hexadecimal representation of the public key.","operationId":"GetPublicKey","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/fulcrum/":{"get":{"tags":["Fulcrum"],"summary":"Service status","description":"Returns the status of the fulcrum service.","operationId":"FulcrumRoot","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/fulcrum/balance/:address":{"get":{"tags":["Fulcrum"],"summary":"Get balance for a single address","description":"Returns an object with confirmed and unconfirmed balance associated with an address.","operationId":"GetBalance","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/fulcrum/balance":{"post":{"tags":["Fulcrum"],"summary":"Get balances for an array of addresses","description":"Returns an array of balances associated with an array of addresses. Limited to 20 items per request.","operationId":"GetBalances","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/fulcrum/utxos/:address":{"get":{"tags":["Fulcrum"],"summary":"Get utxos for a single address","description":"Returns an object with UTXOs associated with an address.","operationId":"GetUtxos","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/fulcrum/utxos":{"post":{"tags":["Fulcrum"],"summary":"Get utxos for an array of addresses","description":"Returns an array of objects with UTXOs associated with an address. Limited to 20 items per request.","operationId":"GetUtxosBulk","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/fulcrum/tx/data/:txid":{"get":{"tags":["Fulcrum"],"summary":"Get transaction details for a TXID","description":"Returns an object with transaction details of the TXID","operationId":"GetTransactionDetails","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/fulcrum/tx/data":{"post":{"tags":["Fulcrum"],"summary":"Get transaction details for an array of TXIDs","description":"Returns an array of objects with transaction details of an array of TXIDs. Limited to 20 items per request.","operationId":"GetTransactionDetailsBulk","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/fulcrum/tx/broadcast":{"post":{"tags":["Fulcrum"],"summary":"Broadcast a raw transaction","description":"Broadcast a raw transaction and return the transaction ID on success or error on failure.","operationId":"BroadcastTransaction","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/fulcrum/block/headers/:height":{"get":{"tags":["Fulcrum"],"summary":"Get block headers","description":"Returns an array with block headers starting at the block height","operationId":"GetBlockHeaders","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/fulcrum/block/headers":{"post":{"tags":["Fulcrum"],"summary":"Get block headers for an array of height + count pairs","description":"Returns an array of objects with block headers. Limited to 20 items per request.","operationId":"GetBlockHeadersBulk","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/fulcrum/transactions/:address":{"get":{"tags":["Fulcrum"],"summary":"Get transaction history for a single address","description":"Returns an array of historical transactions associated with an address. Results are returned in descending order (most recent TX first). Passing allTxs=true will return the entire transaction history, otherwise, only the last 100 TXIDs will be returned.","operationId":"GetTransactions","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/fulcrum/transactions":{"post":{"tags":["Fulcrum"],"summary":"Get the transaction history for an array of addresses","description":"Returns an array of transactions associated with an array of addresses. Limited to 20 items per request. Passing allTxs=true will return the entire transaction history, otherwise, only the last 100 TXIDs will be returned.","operationId":"GetTransactionsBulk","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/fulcrum/unconfirmed/:address":{"get":{"tags":["Fulcrum"],"summary":"Get unconfirmed utxos for a single address","description":"Returns an object with unconfirmed UTXOs associated with an address.","operationId":"GetMempool","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/fulcrum/unconfirmed":{"post":{"tags":["Fulcrum"],"summary":"Get unconfirmed utxos for an array of addresses","description":"Returns an array of objects with unconfirmed UTXOs associated with an address. Limited to 20 items per request.","operationId":"GetMempoolBulk","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/":{"get":{"tags":["Blockchain"],"summary":"Service status","description":"Returns the status of the blockchain service.","operationId":"BlockchainRoot","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getBestBlockHash":{"get":{"tags":["Blockchain"],"summary":"Get best block hash","description":"Returns the hash of the best (tip) block in the longest block chain.","operationId":"GetBestBlockHash","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getBlockchainInfo":{"get":{"tags":["Blockchain"],"summary":"Get blockchain info","description":"Returns various state info regarding blockchain processing.","operationId":"GetBlockchainInfo","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getBlockCount":{"get":{"tags":["Blockchain"],"summary":"Get block count","description":"Returns the number of blocks in the longest blockchain.","operationId":"GetBlockCount","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getBlockHeader/:hash":{"get":{"tags":["Blockchain"],"summary":"Get single block header","description":"Returns serialized block header data.","operationId":"GetSingleBlockHeader","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getBlockHeader":{"post":{"tags":["Blockchain"],"summary":"Get multiple block headers","description":"Returns serialized block header data for multiple hashes.","operationId":"GetBulkBlockHeader","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getChainTips":{"get":{"tags":["Blockchain"],"summary":"Get chain tips","description":"Returns information about known tips in the block tree.","operationId":"GetChainTips","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getDifficulty":{"get":{"tags":["Blockchain"],"summary":"Get difficulty","description":"Returns the current difficulty value.","operationId":"GetDifficulty","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getMempoolEntry/:txid":{"get":{"tags":["Blockchain"],"summary":"Get single mempool entry","description":"Returns mempool data for a transaction.","operationId":"GetMempoolEntry","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getMempoolEntry":{"post":{"tags":["Blockchain"],"summary":"Get bulk mempool entry","description":"Returns mempool data for multiple transactions.","operationId":"GetMempoolEntryBulk","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getMempoolAncestors/:txid":{"get":{"tags":["Blockchain"],"summary":"Get mempool ancestors","description":"Returns mempool ancestor data for a transaction.","operationId":"GetMempoolAncestors","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getMempoolInfo":{"get":{"tags":["Blockchain"],"summary":"Get mempool info","description":"Returns details on the state of the mempool.","operationId":"GetMempoolInfo","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getRawMempool":{"get":{"tags":["Blockchain"],"summary":"Get raw mempool","description":"Returns all transaction ids in the mempool.","operationId":"GetRawMempool","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getTxOut/:txid/:n":{"get":{"tags":["Blockchain"],"summary":"Get transaction output","description":"Returns details about an unspent transaction output.","operationId":"GetTxOut","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getTxOut":{"post":{"tags":["Blockchain"],"summary":"Validate a UTXO","description":"Returns details about an unspent transaction output.","operationId":"GetTxOutPost","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getTxOutProof/:txid":{"get":{"tags":["Blockchain"],"summary":"Get TxOut proof","description":"Returns a hex-encoded proof that the transaction was included in a block.","operationId":"GetTxOutProofSingle","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getTxOutProof":{"post":{"tags":["Blockchain"],"summary":"Get TxOut proofs","description":"Returns hex-encoded proofs for transactions.","operationId":"GetTxOutProofBulk","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/verifyTxOutProof/:proof":{"get":{"tags":["Blockchain"],"summary":"Verify TxOut proof","description":"Verifies a hex-encoded proof was included in a block.","operationId":"VerifyTxOutProofSingle","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/verifyTxOutProof":{"post":{"tags":["Blockchain"],"summary":"Verify TxOut proofs","description":"Verifies hex-encoded proofs were included in blocks.","operationId":"VerifyTxOutProofBulk","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getBlock":{"post":{"tags":["Blockchain"],"summary":"Get block details","description":"Returns block details for a hash.","operationId":"GetBlock","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/blockchain/getBlockHash/:height":{"get":{"tags":["Blockchain"],"summary":"Get block hash","description":"Returns the hash of a block by height.","operationId":"GetBlockHash","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/control/":{"get":{"tags":["Control"],"summary":"Service status","description":"Returns the status of the control service.","operationId":"ControlRoot","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/control/getNetworkInfo":{"get":{"tags":["Control"],"summary":"Get Network Info","description":"RPC call that gets basic full node information.","operationId":"GetNetworkInfo","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/dsproof/":{"get":{"tags":["DSProof"],"summary":"Service status","description":"Returns the status of the dsproof service.","operationId":"DSProofRoot","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/dsproof/getDSProof/:txid":{"get":{"tags":["DSProof"],"summary":"Get Double-Spend Proof","description":"Get information for a double-spend proof.","operationId":"GetDSProof","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/mining/":{"get":{"tags":["Mining"],"summary":"Service status","description":"Returns the status of the mining service.","operationId":"MiningRoot","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/mining/getMiningInfo":{"get":{"tags":["Mining"],"summary":"Get Mining Info","description":"Returns a json object containing mining-related information.","operationId":"GetMiningInfo","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/mining/getNetworkHashPS":{"get":{"tags":["Mining"],"summary":"Get Estimated network hashes per second","description":"Returns the estimated network hashes per second based on the last n blocks. Pass in [nblocks] to override # of blocks, -1 specifies since last difficulty change. Pass in [height] to estimate the network speed at the time when a certain block was found.","operationId":"GetNetworkHashPS","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/rawtransactions/":{"get":{"tags":["RawTransactions"],"summary":"Service status","description":"Returns the status of the rawtransactions service.","operationId":"RawTransactionsRoot","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/rawtransactions/decodeRawTransaction/:hex":{"get":{"tags":["RawTransactions"],"summary":"Decode Single Raw Transaction","description":"Return a JSON object representing the serialized, hex-encoded transaction.","operationId":"DecodeSingleRawTransaction","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/rawtransactions/decodeRawTransaction":{"post":{"tags":["RawTransactions"],"summary":"Decode Bulk Raw Transactions","description":"Return bulk hex encoded transaction.","operationId":"DecodeBulkRawTransactions","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/rawtransactions/decodeScript/:hex":{"get":{"tags":["RawTransactions"],"summary":"Decode Single Script","description":"Decode a hex-encoded script.","operationId":"DecodeSingleScript","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/rawtransactions/decodeScript":{"post":{"tags":["RawTransactions"],"summary":"Bulk Decode Script","description":"Decode multiple hex-encoded scripts.","operationId":"DecodeBulkScript","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/rawtransactions/getRawTransaction/:txid":{"get":{"tags":["RawTransactions"],"summary":"Get Raw Transaction","description":"Return the raw transaction data. If verbose is 'true', returns an Object with information about 'txid'. If verbose is 'false' or omitted, returns a string that is serialized, hex-encoded data for 'txid'.","operationId":"GetRawTransaction","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/rawtransactions/getRawTransaction":{"post":{"tags":["RawTransactions"],"summary":"Get Bulk Raw Transactions","description":"Return the raw transaction data for multiple transactions. If verbose is 'true', returns an Object with information about 'txid'. If verbose is 'false' or omitted, returns a string that is serialized, hex-encoded data for 'txid'.","operationId":"GetBulkRawTransactions","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/rawtransactions/sendRawTransaction/:hex":{"get":{"tags":["RawTransactions"],"summary":"Send Single Raw Transaction","description":"Submits single raw transaction (serialized, hex-encoded) to local node and network.","operationId":"SendSingleRawTransaction","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/full-node/rawtransactions/sendRawTransaction":{"post":{"tags":["RawTransactions"],"summary":"Send Bulk Raw Transactions","description":"Submits multiple raw transaction (serialized, hex-encoded) to local node and network.","operationId":"SendBulkRawTransactions","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/price/":{"get":{"tags":["Price"],"summary":"Service status","description":"Returns the status of the price service.","operationId":"PriceRoot","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/price/bchusd":{"get":{"tags":["Price"],"summary":"Get the USD price of BCH","description":"Get the USD price of BCH from Bitstamp.","operationId":"GetBCHUSD","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/price/psffpp":{"get":{"tags":["Price"],"summary":"Get the PSF price for writing to the PSFFPP","description":"Get the price to pin 1MB of content to the PSFFPP pinning network on IPFS. The price is denominated in PSF tokens.","operationId":"GetPsffppWritePrice","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/price/psf":{"get":{"tags":["Price"],"summary":"PSF token liquidity spot price (proxied)","description":"Proxies GET /price from the PSF token liquidity app when `PSF_LIQUIDITY_PROXY_ENABLED` is true. Returns 503 when the proxy is disabled.","operationId":"GetPsfLiquidityPrice","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/slp/":{"get":{"tags":["SLP"],"summary":"Service status","description":"Returns the status of the SLP service.","operationId":"SlpRoot","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/slp/status":{"get":{"tags":["SLP"],"summary":"Get indexer status","description":"Returns the status of the SLP indexer.","operationId":"GetStatus","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/slp/address":{"post":{"tags":["SLP"],"summary":"Get SLP balance for address","description":"Returns SLP balance for an address.","operationId":"GetAddress","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/slp/txid":{"post":{"tags":["SLP"],"summary":"Get SLP transaction data","description":"Returns SLP transaction data for a TXID.","operationId":"GetTxid","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/slp/token":{"post":{"tags":["SLP"],"summary":"Get token statistics","description":"Returns statistics for a single SLP token.","operationId":"GetTokenStats","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}},"/v6/slp/token/data":{"post":{"tags":["SLP"],"summary":"Get token data","description":"Get mutable and immutable data if the token contains them.","operationId":"GetTokenData","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment required when x402 is enabled"}},"x-payment-model":"x402-v2-exact-usdc"}}}}