resolveBlockfrostV0Client
Overload 1
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.
export function resolveBlockfrostV0Client(
utxo: TxInput,
projectIds: {
mainnet?: string
preprod?: string
preview?: string
}
): Promise<BlockfrostV0Client>
Arguments
Name | Type | Description |
---|---|---|
utxo | TxInput | |
projectIds | { mainnet?: string preprod?: string preview?: string } |
Return value
Promise<BlockfrostV0Client>
Overload 2
Connects to the same network a given Wallet
is connected to (preview, preprod or mainnet).
export function resolveBlockfrostV0Client(
wallet: ReadonlyWallet,
projectIds: {
mainnet?: string
preprod?: string
preview?: string
}
): Promise<BlockfrostV0Client>
Arguments
Name | Type | Description |
---|---|---|
wallet | ReadonlyWallet | |
projectIds | { mainnet?: string preprod?: string preview?: string } |
Return value
Promise<BlockfrostV0Client>