tupelo-wasm-sdk

Home > tupelo-wasm-sdk > Community > getDefault

Community.getDefault() function

getDefault returns the default Tupelo commuity. This is currently the Tupelo testnet. It creates a libp2p node and connects to the testnet, establishes the community connection. This method optionally takes a Repo. If you do not pass in a Repo, then it will create a default repo. Details on the default can be found:

Signature:

function getDefault(repo?: Repo): Promise<Community>;

Parameters

Parameter Type Description
repo Repo (optional) - a Repo object (wrapper around an IPFS repo).

Returns:

Promise<Community>