Skip to content

Data source provider for Terraform that interacts with the Solana networks

License

Notifications You must be signed in to change notification settings

callensm/terraform-provider-solana

Repository files navigation

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