{"id":13770055,"url":"https://github.com/fivebinaries/go-cardano-serialization","last_synced_at":"2025-05-11T02:34:15.646Z","repository":{"id":37012336,"uuid":"353784547","full_name":"fivebinaries/go-cardano-serialization","owner":"fivebinaries","description":"Golang library for serialization \u0026 deserialization of Cardano data structures.","archived":false,"fork":false,"pushed_at":"2023-04-04T02:10:20.000Z","size":273,"stargazers_count":28,"open_issues_count":3,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-03T17:08:59.524Z","etag":null,"topics":["cardano","go","golang","protocol","serialization"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fivebinaries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-04-01T18:00:34.000Z","updated_at":"2024-05-20T23:20:09.000Z","dependencies_parsed_at":"2024-01-12T15:13:47.421Z","dependency_job_id":null,"html_url":"https://github.com/fivebinaries/go-cardano-serialization","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivebinaries%2Fgo-cardano-serialization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivebinaries%2Fgo-cardano-serialization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivebinaries%2Fgo-cardano-serialization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivebinaries%2Fgo-cardano-serialization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fivebinaries","download_url":"https://codeload.github.com/fivebinaries/go-cardano-serialization/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225004693,"owners_count":17405659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cardano","go","golang","protocol","serialization"],"created_at":"2024-08-03T17:00:33.907Z","updated_at":"2024-11-17T05:32:02.473Z","avatar_url":"https://github.com/fivebinaries.png","language":"Go","funding_links":[],"categories":["Modules"],"sub_categories":["Data Serialization"],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://fivebinaries.com\" target=\"_blank\" align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/fivebinaries/go-cardano-serialization/dev/.github/go-cardano-serialization-logo.svg\" width=\"100\"\u003e\n  \u003c/a\u003e\n  \u003cbr /\u003e\n\u003c/p\u003e\n\n# Go Cardano Serialization Library\n[![GoDoc](https://godoc.org/github.com/fivebinaries/go-cardano-serialization?status.svg)](https://godoc.org/github.com/fivebinaries/go-cardano-serialization)\n\nGolang library for serialization and deserialiation of Cardano data structures. \n\n## Installation\n\n```bash\ngo get github.com/fivebinaries/go-cardano-serialization\n```\n\n## Usage\n### Creating a simple transaction\n\nThe simplest transaction on Cardano network contains inputs(Unspent Transaction Outputs) and output.\n\n```golang\npackage main\n\nimport (\n    \"log\"\n\n    \"github.com/fivebinaries/go-cardano-serialization/address\"\n    \"github.com/fivebinaries/go-cardano-serialization/tx\"\n)\n\nfunc main() {\n    adaTx := tx.NewTx()\n    adaTx.AddInput(\n        tx.NewInput(\n            \"TX_HASH\", // Transaction Hash\n            0,         // Transaction Index\n            10000000   // Lovelace value of UTXO\n        )\n    )\n\n    receiverAddr, err := address.NewAddress(\"addr1bech32_receiver_address_here\")\n    if err != nil {\n        log.Fatal(err)\n    }\n\n    adaTx.AddOutput(\n        tx.NewOutput(\n            receiverAddr,\n            5000000\n        )\n    )\n\n    // Set an estimated transaction cost\n    adaTx.SetFee(170000)\n\n    // Set the transaction's time to live\n    adaTx.SetTTL(505050505)\n\n    // Encode example transaction to cbor hex.\n    fmt.Println(adaTx.Hex())\n}\n```\n\nMore examples covering building through signing and submission of transactions can be found in the [`examples`](./examples/) folder.\n\n## License\n\nLicensed under the [Apache License 2.0](https://opensource.org/licenses/Apache-2.0), see [`LICENSE`](https://github.com/fivebinaries/go-cardano-serialization/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffivebinaries%2Fgo-cardano-serialization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffivebinaries%2Fgo-cardano-serialization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffivebinaries%2Fgo-cardano-serialization/lists"}