forked from thirdweb-dev/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
83 lines (74 loc) · 3.3 KB
/
.env.example
File metadata and controls
83 lines (74 loc) · 3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# WALLET [Optional]
# If you want, you can configure AWS KMS
AWS_KMS_KEY_ID=<your_aws_kms_key_id>
AWS_ACCESS_KEY_ID=<your_aws_access_key_id>
AWS_SECRET_ACCESS_KEY=<your_aws_secret_access_key>
AWS_REGION=<your_aws_region>
# Or GOOGLE KMS
# Required for Google Auth
GOOGLE_APPLICATION_CREDENTIAL_EMAIL=<client_email_from_download_service_account_json>
GOOGLE_APPLICATION_CREDENTIAL_PRIVATE_KEY=<private_key_from_download_service_account_json>
# Required for Google KMS
GOOGLE_APPLICATION_PROJECT_ID=<google_project_id>
GOOGLE_KMS_KEY_RING_ID=<key_ring_id>
GOOGLE_KMS_LOCATION_ID=<location_of_key_ring>
GOOGLE_KMS_CRYPTO_KEY_ID=<kms_key_id> # If created on Google Console
# THIRDWEB SDK SECRET KEY [Required]
# -----------------------
# Obtain an Secret Key from thirdweb.com/dashboard
# this enables you to use the default RPCs and extra features
THIRDWEB_API_SECRET_KEY=<your_thirdweb_api_secret_key>
# DATABASE OPTIONS [Required]
# ----------------
POSTGRES_CONNECTION_URL="postgresql://postgres:postgres@localhost:5432/postgres?sslmode=disable"
# SERVING OPTIONS [Optional]
# ---------------
# Deatults PORT to 3005
# Deatults HOST to 0.0.0.0
# Deatults OPENAPI_BASE_ORIGIN to http://localhost:3005
# ---------------
PORT=3005
HOST="0.0.0.0"
OPENAPI_BASE_ORIGIN=http://localhost:3005
# CONFIGURATION OPTIONS [Optional]
# ----------------------
# the number of transactions to queue for before starting processing
MIN_TRANSACTION_TO_PROCESS=1
# the max number of transactions to batch together for processing
TRANSACTIONS_TO_BATCH=10
# Override default RPCs for any chain.
# Can be a URL or file path to a json config file
# See example config file: chain-overrides.example.json
CHAIN_OVERRIDES=<path_or_url_to_file>
# CORS OPTIONS [Optional]
# ------------
# Configures the Access-Control-Allow-Origin CORS header. Defaults to * (Allow All)
# The value of origin could be of different types:
# String - set origin to a specific origin. For example if you set it to "http://example.com" only
# requests from "http://example.com" will be allowed. The special * value (default) allows any origin.
# RegExp - set origin to a regular expression pattern that will be used to test the request origin.
# If it is a match, the request origin will be reflected. For example, the pattern *.example.com
# will reflect any request that is coming from an origin ending with "example.com".
# Array - set origin to an array of valid origins. Each origin can be a String or a RegExp.
# Needs to be comma separated. For example "http://example1.com,/\.example2\.com$/" will accept any request
# from "http://example1.com" or from a subdomain of "example2.com".
ACCESS_CONTROL_ALLOW_ORIGIN=*
# benchmark vars [Optional]
BENCHMARK_HOST='http://localhost:3005'
BENCHMARK_URL_PATH='/contract/mumbai/0xc8be6265C06aC376876b4F62670adB3c4d72EABA/write'
BENCHMARK_POST_BODY='{
"function_name": "transfer",
"args": ["0x1946267d81Fb8aDeeEa28e6B98bcD446c8248473", 100000]
}'
BENCHMARK_CONCURRENCY=10
BENCHMARK_REQUESTS=10
# Retey Gas Max Values (All in wei)
# Default Values
# MAX_FEE_PER_GAS_FOR_RETRY=55000000000 (55 Gwei)
# MAX_PRIORITY_FEE_PER_GAS_FOR_RETRY=55000000000 (55 Gwei)
# MAX_RETRIES_FOR_TX=3
# MAX_BLOCKS_ELAPSED_BEFORE_RETRY=50
# RETRY_TX_CRON_SCHEDULE=*/30 * * * * *
# RETRY_TX_ENABLED=true
MAX_FEE_PER_GAS_FOR_RETRY=55000000000
MAX_PRIORITY_FEE_PER_GAS_FOR_RETRY=55000000000