{"id":64903,"library":"decred-dcrd-txscript-v2","title":"Decred TxScript","description":"Package txscript implements the Decred transaction script language.","status":"active","version":null,"language":"go","source_language":null,"source_url":"https://github.com/decred/dcrd","tags":["decred","blockchain","script","transaction"],"install":[{"cmd":"go get github.com/decred/dcrd/txscript/v2","lang":"bash","label":"Install github.com/decred/dcrd/txscript/v2"}],"dependencies":[],"imports":[{"symbol":"txscript","correct":"github.com/decred/dcrd/txscript/v2"}],"quickstart":{"code":"package main\n\nimport (\n    \"fmt\"\n    \"github.com/decred/dcrd/txscript/v2\"\n)\n\nfunc main() {\n    script, err := txscript.NewScriptBuilder().AddOp(txscript.OP_TRUE).Script()\n    if err != nil {\n        fmt.Println(err)\n        return\n    }\n    fmt.Printf(\"Script: %x\\n\", script)\n}","lang":"go","description":"Builds a simple Decred script with OP_TRUE."},"warnings":[],"env_vars":null,"search_vec":"'blockchain':12 'decr':1,7,11 'implement':5 'languag':10 'packag':3 'script':9,13 'transact':8,14 'txscript':2,4","created_at":"2026-06-17T17:01:52.817779+00:00","updated_at":"2026-06-17T17:01:52.817779+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/decred/dcrd","github":"https://github.com/decred/dcrd","docs":"https://pkg.go.dev/github.com/decred/dcrd/txscript/v2#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["crypto"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}