{"id":16561505,"url":"https://github.com/jcnelson/stacks-node-cli","last_synced_at":"2025-10-15T07:50:09.368Z","repository":{"id":76940311,"uuid":"528501380","full_name":"jcnelson/stacks-node-cli","owner":"jcnelson","description":"Stacks node swiss-army knife","archived":false,"fork":false,"pushed_at":"2022-11-24T19:18:40.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-15T14:41:30.855Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcnelson.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-24T16:16:42.000Z","updated_at":"2024-01-12T18:35:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"4d434962-4e31-4af9-88e1-f7d9cfe580b9","html_url":"https://github.com/jcnelson/stacks-node-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcnelson%2Fstacks-node-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcnelson%2Fstacks-node-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcnelson%2Fstacks-node-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcnelson%2Fstacks-node-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcnelson","download_url":"https://codeload.github.com/jcnelson/stacks-node-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241965761,"owners_count":20050313,"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":[],"created_at":"2024-10-11T20:33:23.210Z","updated_at":"2025-10-15T07:50:04.329Z","avatar_url":"https://github.com/jcnelson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stacks-node-cli\n\nStacks node swiss-army knife\n\n## Encoding Clarity values\n\n```\n$ ./stacks-node-cli encode\nUsage: ./stacks-node-cli encode type value [type value ...]\nWhere `type` and `value` adhere to the following grammar:\n(note that '++' means 'concatenation')\n\n   Integer         = (any i128 value)\n   UInteger        = (any u128 value)\n   C32Address      = (any Crockford-32 checksum-encoded address)\n   HexString       = \"0x\" ++ (any string that matches the regex /^[0-9a-f]$/)\n   ClarityLiteral  = (any string that is a valid Clarity literal)\n   ContractName    = (any string that is a valid Clarity contract name)\n   ASCIIString     = \" ++ (any string made of just ASCII characters) ++ \"\n   UTF8String      = \" ++ (any string made of UTF-8 codepoints) ++ \"\n\n   AddressString   = C32Address | C32Address, ContractName\n\n   Value = Integer | UInteger | C32CheckString | Boolean | HexString | ASCIIString | UTF8String \n\n   Type = \"int\", Integer | \"uint\", UInteger | \"bool\", Boolean | \"buff\", HexString |\n          \"string-ascii\", ASCIIString | \"string-utf8\", UTF8String | \"principal\", AddressString |\n          \"some\", Type | \"none\" | \"ok\", Type | \"err\", Type | \"list\", UInteger, { Type, Value } |\n          \"tuple\", UInteger, { ClarityLiteral, Type, Value }\n\nExamples:\n uint 3\n       0100000000000000000000000000000003\n principal SP1QK1AZ24R132C0D84EEQ8Y2JDHARDR58R72E1ZW\n       05166f30abe2260231300d411ceba3c29362ac370546\n buff 0x1234\n       02000000021234\n some buff 0xdeadbeef\n       0a0200000004deadbeef\n ok some string-ascii \"hello world\"\n       070a0d0000000b68656c6c6f20776f726c64\n list 3 uint 0 uint 1 uint 2\n       0b00000003010000000000000000000000000000000001000000000000000000000000000000010100000000000000000000000000000002\n tuple 2 field1 int 3 field2 string-utf8 \"hello world\"\n       0c00000002066669656c64310000000000000000000000000000000003066669656c64320e0000000b68656c6c6f20776f726c64\n```\n\nTODO: finish the rest of the README\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcnelson%2Fstacks-node-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcnelson%2Fstacks-node-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcnelson%2Fstacks-node-cli/lists"}