Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import mempoolJS from '@mempool/mempool.js';
const { bitcoin } = mempoolJS({
protocol: 'https', // optional, defaults to http for localhost, otherwise https
hostname: 'mempool.space',
network: 'testnet' // 'signet' | 'testnet' | 'mainnet',
network: 'testnet4', // 'signet' | 'testnet' | 'testnet4' | 'mainnet',
config: { // optional axios request config to add to requests
headers: {
authorization: 'Basic auth'
Expand Down
2 changes: 1 addition & 1 deletion src/services/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const makeBitcoinAPI = ({
if (!protocol) {
hostname?.includes('localhost') ? protocol = 'http' : protocol = 'https';
}
if (network && ['testnet', 'signet'].includes(network)) {
if (network && ['testnet', 'testnet4', 'signet'].includes(network)) {
network = `/${network}`;
} else {
network = '';
Expand Down