Skip to main content

resolveBlockfrostV0Client

Overload 1​

export function resolveBlockfrostV0Client(
  utxo: TxInput,
  projectIds: {
    mainnet??: string
    preprod??: string
    preview??: string
  }
): Promise<BlockfrostV0Client>

Connects to the same network a given Wallet or the given TxInput (preview, preprod or mainnet).

Throws an error if a Blockfrost project_id is missing for that specific network.

Arguments​

1. utxo​

utxo: TxInput

2. projectIds​

projectIds: {
  mainnet??: string
  preprod??: string
  preview??: string
}

Returns​

Promise<BlockfrostV0Client>

Overload 2​

export function resolveBlockfrostV0Client(
  wallet: ReadonlyWallet,
  projectIds: {
    mainnet??: string
    preprod??: string
    preview??: string
  }
): Promise<BlockfrostV0Client>

Connects to the same network a given Wallet is connected to (preview, preprod or mainnet).

Arguments​

1. wallet​

wallet: ReadonlyWallet

2. projectIds​

projectIds: {
  mainnet??: string
  preprod??: string
  preview??: string
}

Returns​

Promise<BlockfrostV0Client>