({{, (RefLink[$BlockchainBase, paclet:ref/$BlockchainBase]) 
gives the name of the default blockchain to be used for blockchain computations.}})

OpenersNotesSection(Spacer1)Details

(RefLink[$BlockchainBase, paclet:ref/$BlockchainBase]) can be reset.

Possible settings for (RefLink[$BlockchainBase, paclet:ref/$BlockchainBase]) include:

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Display the current setting for (RefLink[$BlockchainBase, paclet:ref/$BlockchainBase]):

$BlockchainBase

(RefLink[BlockchainData, paclet:ref/BlockchainData]) will use the current setting for (RefLink[$BlockchainBase, paclet:ref/$BlockchainBase]):

BlockchainData[]

Change the setting:

$BlockchainBase="Bitcoin"

Now (RefLink[BlockchainData, paclet:ref/BlockchainData]) will return metainformation for the "Bitcoin" blockchain:

BlockchainData[]

OpenersExampleSection1(Spacer1)Scope  (1)

Get the last block of the Bitcoin testnet blockchain:

$BlockchainBase={"Bitcoin","Testnet"}

BlockchainBlockData[-1]//Dataset

OpenersExampleSection3(Spacer1)Possible Issues  (1)

Getting transaction information from the Bitcoin testnet using a transaction ID from the mainnet network will return a (RefLink[$Failed, paclet:ref/$Failed]) output:

$BlockchainBase={"Bitcoin","Mainnet"}

txid=RandomChoice[BlockchainBlockData[-1,"TransactionList"]]

$BlockchainBase={"Bitcoin","Testnet"}

BlockchainTransactionData[txid]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[BlockchainBase, paclet:ref/BlockchainBase])  ▪  (RefLink[BlockchainData, paclet:ref/BlockchainData])  ▪  (RefLink[BlockchainBlockData, paclet:ref/BlockchainBlockData])  ▪  (RefLink[BlockchainTransactionData, paclet:ref/BlockchainTransactionData])  ▪  (RefLink[BlockchainAddressData, paclet:ref/BlockchainAddressData])  ▪  (RefLink[BlockchainTokenData, paclet:ref/BlockchainTokenData])  ▪  (RefLink[BlockchainKeyEncode, paclet:ref/BlockchainKeyEncode])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Working with Blockchains, paclet:guide/Blockchain])}})}})