/terraform-provider-solana

Data source provider for Terraform that interacts with the Solana networks

Primary LanguageGoMozilla Public License 2.0MPL-2.0

Terraform Solana Provider

Release Registry License

Registry Page

Requirements

  • Terraform >= 0.13.x
  • Go 1.16.x (for building from source)

Example Usage

Full provider documentation can be found on the Terraform registry at the link found above.

terraform {
  required_providers {
    solana = {
      source  = "callensm/solana"
      version = "<LATEST_VERSION>"
    }
  }
}

provider "solana" {
  cluster = "testnet"
}

data "solana_address_signatures" "sigs" {
  address = "11111111111111111111111111111111"

  search_options {
    limit = 1
  }
}

data "solana_signature_status" "sig" {
  signature                  = data.solana_address_signatures.sigs.results.0.signature
  search_transaction_history = true
}

License

MPL v2.0