Connect to Infura¶
Truffle for VSCode allows users to create a new instance, or connect to an existing instance, of the Infura service directly from VSCode. This enables developers to reduce time moving between portal and IDE.
Create a new Infura service¶
If you don't have an existing Infura service deployed, you can create one in any account you have access to.
- Create a new Infura service by doing one of the following:
- In the command palette, select Truffle: Create a new network.
- Use the ellipsis menu in the Truffle - Networks view.
- Use the shortcuts in the Truffle - Networks view.
- A prompt displays to log in to the Infura service, if you haven't already.
- Enter the project name.
- Enter the project visibility. The default is public.
Connect to existing Infura projects¶
- Connect to an existing Infura account/project by doing one of the following:
- In the command palette, select Truffle: Connect to network.
- Use the ellipsis menu in the Truffle - Networks view.
- Use the shortcuts in the Truffle - Networks view.
- A prompt displays to log in to the Infura service, if you haven't already.
- Select the project name.
- The nodes available from Infura display.