camel-web3j-kafka-connector source configuration

Connector Description: Interact with Ethereum nodes using web3j client API.

When using camel-web3j-kafka-connector as source make sure to use the following Maven dependency to have support for the connector:

<dependency>
  <groupId>org.apache.camel.kafkaconnector</groupId>
  <artifactId>camel-web3j-kafka-connector</artifactId>
  <version>x.x.x</version>
  <!-- use the same version as your Camel Kafka connector version -->
</dependency>

To use this source connector in Kafka connect you’ll need to set the following connector.class

connector.class=org.apache.camel.kafkaconnector.web3j.CamelWeb3jSourceConnector

The camel-web3j source connector supports 29 options, which are listed below.

Name Description Default Priority

camel.source.path.nodeAddress

Required Sets the node address used to communicate.

HIGH

camel.source.endpoint.addresses

Contract address or a list of addresses.

MEDIUM

camel.source.endpoint.fromAddress

The address the transaction is send from.

MEDIUM

camel.source.endpoint.fromBlock

The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.

"latest"

MEDIUM

camel.source.endpoint.fullTransactionObjects

If true it returns the full transaction objects, if false only the hashes of the transactions.

false

MEDIUM

camel.source.endpoint.gasLimit

The maximum gas allowed in this block.

MEDIUM

camel.source.endpoint.privateFor

A transaction privateFor nodes with public keys in a Quorum network.

MEDIUM

camel.source.endpoint.quorumAPI

If true, this will support Quorum API.

false

MEDIUM

camel.source.endpoint.toAddress

The address the transaction is directed to.

MEDIUM

camel.source.endpoint.toBlock

The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.

"latest"

MEDIUM

camel.source.endpoint.topics

Topics are order-dependent. Each topic can also be a list of topics. Specify multiple topics separated by comma.

MEDIUM

camel.source.endpoint.web3j

The preconfigured Web3j object.

MEDIUM

camel.source.endpoint.bridgeErrorHandler

Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored.

false

MEDIUM

camel.source.endpoint.exceptionHandler

To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored.

MEDIUM

camel.source.endpoint.exchangePattern

Sets the exchange pattern when the consumer creates an exchange. One of: [InOnly] [InOut] [InOptionalOut].

Enum values:

  • InOnly

  • InOut

  • InOptionalOut

MEDIUM

camel.component.web3j.addresses

Contract address or a list of addresses.

MEDIUM

camel.component.web3j.configuration

Default configuration.

MEDIUM

camel.component.web3j.fromAddress

The address the transaction is send from.

MEDIUM

camel.component.web3j.fromBlock

The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.

"latest"

MEDIUM

camel.component.web3j.fullTransactionObjects

If true it returns the full transaction objects, if false only the hashes of the transactions.

false

MEDIUM

camel.component.web3j.gasLimit

The maximum gas allowed in this block.

MEDIUM

camel.component.web3j.privateFor

A transaction privateFor nodes with public keys in a Quorum network.

MEDIUM

camel.component.web3j.quorumAPI

If true, this will support Quorum API.

false

MEDIUM

camel.component.web3j.toAddress

The address the transaction is directed to.

MEDIUM

camel.component.web3j.toBlock

The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.

"latest"

MEDIUM

camel.component.web3j.topics

Topics are order-dependent. Each topic can also be a list of topics. Specify multiple topics separated by comma.

MEDIUM

camel.component.web3j.web3j

The preconfigured Web3j object.

MEDIUM

camel.component.web3j.bridgeErrorHandler

Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored.

false

MEDIUM

camel.component.web3j.autowiredEnabled

Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc.

true

MEDIUM

The camel-web3j source connector has no converters out of the box.

The camel-web3j source connector has no transforms out of the box.

The camel-web3j source connector has no aggregation strategies out of the box.