docs/en/connectors/source/Web3j.md
import ChangeLog from '../changelog/connector-web3j.md';
Web3j source connector
Spark
Flink
Seatunnel Zeta
Source connector for web3j. It is used to read data from the blockchain, such as block information, transactions, smart contract events, etc. Currently, it supports reading block height data.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| url | String | Yes | - | When using Infura as the service provider, the URL is used for communication with the Ethereum network. |
env {
parallelism = 1
job.mode = "BATCH"
}
source {
Web3j {
url = "https://mainnet.infura.io/v3/xxxxx"
}
}
# Console printing of the read Http data
sink {
Console {
parallelism = 1
}
}
Then you will get the following data:
{"blockNumber":19525949,"timestamp":"2024-03-27T13:28:45.605Z"}