Transaction Sender configuration
Goal
Tx-Sender is an Orchestrate worker responsible for:
- Storing Transaction Trace by sending it to API-Context-Store;
- Sending Transactions to an Ethereum node.
It consumes messages from tx-signer kafka topic.
Quick-Start
Configure application
The application can be configured through flags or environment variables, you can run the help run
command line:
Usage: orchestrate tx-sender run [flags] Flags: --envelope-store-url string URL (GRPC target) Envelope Store (See https://github.com/grpc/grpc/blob/master/doc/naming.md) Environment variable: "ENVELOPE_STORE_URL" (default "localhost:8080") --eth-client-url strings Ethereum client url Environment variable: "ETH_CLIENT_URL" -h, --help help for run --kafka-group string Address of Kafka server to connect to. Environment variable: "KAFKA_GROUP" (default "group-e2e") --kafka-tls-ca-cert-file string CA cert file Path. Environment variable: "KAFKA_TLS_CA_CERT_FILE" --kafka-tls-client-cert-file string Client Cert File Path. Environment variable: "KAFKA_TLS_CLIENT_CERT_FILE" --kafka-tls-client-key-file string Client key file Path. Environment variable: "KAFKA_TLS_CLIENT_KEY_FILE" --kafka-tls-enabled Whether or not to use TLS when connecting to the broker (defaults to false). Environment variable: "KAFKA_TLS_ENABLED" --kafka-tls-insecure-skip-verify Controls whether a client verifies the server's certificate chain and host name. If InsecureSkipVerify is true, TLS accepts any certificate presented by the server and any host name in that certificate. In this mode, TLS is susceptible to man-in-the-middle attacks. This should be used only for testing. Environment variable: "KAFKA_TLS_INSECURE_SKIP_VERIFY" --kafka-url strings URL (addresses) of Kafka server(s) to connect to. Environment variable: "KAFKA_URL" (default [localhost:9092]) --topic-tx-recover string Kafka topic for envelopes waiting for their transaction recovered Environment variable: "TOPIC_TX_RECOVER" (default "topic-tx-recover") --topic-tx-sender string Kafka topic for envelopes waiting for their transaction sent Environment variable: "TOPIC_TX_SENDER" (default "topic-tx-sender")
Warning
♦ Default values can be changed by using environment variables.
♦ Environment variables will be overwritten by Flags values.
Note
For more info on GRPC Context Store target click here.