{"id":20433100,"url":"https://github.com/anataliocs/avail-api-example","last_synced_at":"2026-04-22T05:32:50.080Z","repository":{"id":228313989,"uuid":"738793712","full_name":"anataliocs/avail-api-example","owner":"anataliocs","description":"Typescript scripts that demonstrate interacting with an Avail node.","archived":false,"fork":false,"pushed_at":"2024-01-04T04:04:56.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T23:09:14.201Z","etag":null,"topics":["blockchain","npm","ts-node","typescript","web3"],"latest_commit_sha":null,"homepage":"https://docs.spheron.network/marketplace-guide/avail/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anataliocs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-01-04T04:02:33.000Z","updated_at":"2024-01-04T04:07:05.000Z","dependencies_parsed_at":"2024-03-18T07:21:12.798Z","dependency_job_id":"31e6f91f-5918-46c2-86ba-9485459b7e2d","html_url":"https://github.com/anataliocs/avail-api-example","commit_stats":null,"previous_names":["anataliocs/avail-api-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anataliocs/avail-api-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anataliocs%2Favail-api-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anataliocs%2Favail-api-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anataliocs%2Favail-api-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anataliocs%2Favail-api-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anataliocs","download_url":"https://codeload.github.com/anataliocs/avail-api-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anataliocs%2Favail-api-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32122720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["blockchain","npm","ts-node","typescript","web3"],"created_at":"2024-11-15T08:17:42.727Z","updated_at":"2026-04-22T05:32:50.064Z","avatar_url":"https://github.com/anataliocs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Avail API Use Cases\n\nTypescript `ts-node` scripts that demonstrate interacting with an Avail node.\n\nRun an [Avail node on Spheron](https://docs.spheron.network/marketplace-guide/avail/)\n\n### Install\n\nInstall:\n```\n    npm i\n```\n\nInstall ts-node if needed\n```\nnpm i -g ts-node\n```\n\n### Create Local Config \n\nUpdate: `config.ts` \n\n```typescript\nexport default {\n    mnemonic: \"\", // The secret seed value for account used to sign transactions \n    ApiURL: \"\",   // Api url\n    app_id: 0,    // Application id \n    amount: 0,    // Amount of tokens to transfer\n    receiver: \"\"  // Receiver address\n}\n```\n\nConnect to a node:\n```\nts-node connect.ts \n```\n\nSubscribes to new blocks:\n```\nts-node listen_new_blocks.ts \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanataliocs%2Favail-api-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanataliocs%2Favail-api-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanataliocs%2Favail-api-example/lists"}