Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ferranbt/terraform-provider-ethereum
A terraform provider for Ethereum resources
https://github.com/ferranbt/terraform-provider-ethereum
Last synced: 10 days ago
JSON representation
A terraform provider for Ethereum resources
- Host: GitHub
- URL: https://github.com/ferranbt/terraform-provider-ethereum
- Owner: ferranbt
- Created: 2023-05-23T07:57:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-08T16:23:27.000Z (11 months ago)
- Last Synced: 2024-06-21T14:06:49.464Z (5 months ago)
- Language: Go
- Size: 202 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ethereum Terraform Provider
The [Ethereum provider](https://github.com/ferranbt/terraform-provider-ethereum) allows [Terraform](https://terraform.io) to manage [Ethereum](https://ethereum.org/en/) resources.
## Examples
Create the provider:
```hcl
provider "ethereum" {}
```Send a transaction:
```hcl
data "ethereum_eoa" "account" {
mnemonic = "test test test test test test test test test test test junk"
}resource "ethereum_transaction" "example" {
signer = data.ethereum_eoa.account.signer
to = "0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5"
value = 100
}
```Deploy a contract:
```hcl
resource "ethereum_contract_deployment" "contract" {
signer = data.ethereum_eoa.account.signerartifact = "../package/artifacts:Proxy"
input = [
"0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5"
]
}
```Query the blockchain:
```hcl
data "ethereum_block" "latest" {
tag = "latest"
}
```Query a dns name:
```hcl
data "ethereum_ens" "resolve" {
name = "arachnid.eth"
}
```