BlockfrostV0
Blockfrost specific implementation of Network
.
WiP.
Constructor
Constructs a BlockfrostV0
using the network name (preview
, preprod
or mainnet
) and your Blockfrost project id.
const network = new helios.BlockfrostV0(networkName: string, projectId: string)
Static methods
resolve
Connect the same network a Wallet
is connected to (preview
, preprod
or mainnet
). Throws an error if a Blockfrost project id is missing for that specific network.
const network = helios.BlockforstV0.resolve(
wallet: helios.Wallet,
projectIds: {
preview?: string,
preprod?: string,
mainnet?: string
}
)
Methods
getUtxos
Gets a complete list of UTxOs at a given address.
network.getUtxos(address: helios.Address): Promise<helios.UTxO[]>
submitTx
Submits a transaction to the blockchain. Returns the TxId
.
network.submitTx(tx: helios.Tx): Promise<helios.TxId>