github.com/smartcontractkit/chainlink-testing-framework/libs@v0.0.0-20240227141906-ec710b4eb1a3/docs/chainlink-nodes/index.md (about) 1 --- 2 layout: default 3 title: Chainlink Nodes 4 nav_order: 4 5 has_children: false 6 --- 7 8 # Chainlink Nodes 9 10 Make sure to have your environment setup code in place, which will deploy a few Chainlink nodes, and give you an `env` environment. 11 12 ```go 13 // Get a list of all Chainlink nodes deployed in your test environment 14 chainlinkNodes, err := client.ConnectChainlinkNodes(env) 15 ``` 16 17 From here, you can [interact with](https://pkg.go.dev/github.com/smartcontractkit/chainlink-testing-framework/client#Chainlink) each Chainlink node to manage keys, jobs, bridges, and transactions. 18 19 ## Chainlink Jobs 20 21 The most common interaction you'll have with Chainlink nodes will likely be creating jobs, using the `chainlinkNode.CreateJob(JobSpec)` method. Chainlink jobs are how the Chainlink nodes know what actions they're expected to perform on chain, and how thy should perform them. A typical test consists of launching your resources, deploying contracts to the blockchain, and telling the Chainlink node to interact with those contracts by creating a job. Read more about Chainlink jobs and the specifics on using them [here](https://docs.chain.link/docs/jobs/). 22 23 There are plenty of built in [JobSpecs](https://pkg.go.dev/github.com/smartcontractkit/chainlink-testing-framework/client#JobSpec) like the [Keeper Job Spec](https://pkg.go.dev/github.com/smartcontractkit/chainlink-testing-framework/client#KeeperJobSpec) and the [OCR Job Spec](https://pkg.go.dev/github.com/smartcontractkit/chainlink-testing-framework/client#OCRTaskJobSpec) that you can use. But if for whatever reason, those don't do the job for you, you can create a raw TOML job with `CreateJobRaw(string)` like below. 24 25 ```go 26 jobData, err := chainlinkNode.CreateJobRaw(` 27 schemaVersion = 1 28 otherField = true 29 `) 30 ```