Icon LinkProviders

An instance of the Provider class lets you connect to a Fuel node. It provides read-only access to the blockchain state. You can use this provider as-is or through a Wallet instance.

const provider = new Provider('http://127.0.0.1:4000/graphql');
const { minGasPrice, gasPerByte, gasPriceFactor, maxGasPerTx, nodeVersion } =
	await provider.getNodeInfo();