{"id":32289399,"url":"https://github.com/diginex/libra-core","last_synced_at":"2026-02-20T09:31:10.283Z","repository":{"id":56829666,"uuid":"198990173","full_name":"diginex/libra-core","owner":"diginex","description":"Dart client that can be used to interact with Libra nodes, implemented by","archived":false,"fork":false,"pushed_at":"2019-10-04T14:09:00.000Z","size":140,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-11T10:35:55.887Z","etag":null,"topics":["dart","flutter","libra"],"latest_commit_sha":null,"homepage":"https://play.google.com/store/apps/details?id=com.libra.wallet","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diginex.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-26T09:39:04.000Z","updated_at":"2022-04-27T14:49:20.000Z","dependencies_parsed_at":"2022-08-26T13:51:24.235Z","dependency_job_id":null,"html_url":"https://github.com/diginex/libra-core","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/diginex/libra-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diginex%2Flibra-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diginex%2Flibra-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diginex%2Flibra-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diginex%2Flibra-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diginex","download_url":"https://codeload.github.com/diginex/libra-core/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diginex%2Flibra-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29647643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dart","flutter","libra"],"created_at":"2025-10-23T02:40:29.373Z","updated_at":"2026-02-20T09:31:10.278Z","avatar_url":"https://github.com/diginex.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/mmsqe/libra-core.svg?branch=master)](https://travis-ci.org/mmsqe/libra-core)\n\n# Libra Core\n\nLibra Core is a Dart library client that can be used to interact with [Libra](https://libra.org/) nodes.\n\nThanks to JavaScript \u003ca href=\"https://github.com/perfectmak/libra-core\"\u003eLibra Core\u003c/a\u003e from Perfect Makanju.\n\nThere is an example Flutter application built for [Android](https://play.google.com/store/apps/details?id=com.libra.wallet), [iOS] coming soon.\n\n## Table of Content\n\n\u003c!-- toc --\u003e\n\n- [Usage](#usage)\n  * [Creating an Account](#creating-an-account)\n  * [Minting Amount](#minting-amount)\n  * [Checking an address balance](#checking-an-address-balance)\n  * [Transferring Libra Coins](#transferring-libra-coins)\n  * [Query Transaction with Sequence Number](#query-transaction-with-sequence-number)\n- [License](#license)\n\n\u003c!-- tocstop --\u003e\n\n## Usage\n\nThere are two main interface classes:\n\n- LibraWallet\n- LibraClient\n\n\n### Creating an Account\n\nInstantiate `LibraWallet` to create a libra account:\n\n    LibraWallet wallet = new LibraWallet();\n\nMnemonic is optional, a random mnemonic is generated and used without specifying one\n\n    const String mnemonic = 'danger gravity ... flip';\n    LibraWallet wallet = new LibraWallet(mnemonic: mnemonic);\n\nA `LibraWallet` holds more than one `LibraAccount` objects, each account being a child of the wallet (start with index 0). \n\n    LibraAccount alice = wallet.newAccount();\n    LibraAccount bob = wallet.newAccount();\n\nGenerate addres from account:\n\n    String aliceAddress = alice.getAddress();\n\n### Minting Amount\n\nInstantiate `LibraClient` and uses faucet service to mint, default config as Testnet:\n\n    LibraClient client = new LibraClient();\n    int amount = 1000000;\n    await client.mintWithFaucetService(aliceAddress, BigInt.from(amount), needWait: false);\n\n### Checking an address balance\n\nGet state from alice which contains balance and other information such as `sequenceNumber`\n\n    LibraAccountState aliceState = await client.getAccountState(aliceAddress);\n    print('alice state: ${aliceState.balance}, ${aliceState.sequenceNumber}');\n\n### Transferring Libra Coins\n\nTransfer from alice to bob, implemented with Libra Canonical Serialization:\n\n    LibraAccount bob = wallet.newAccount();\n    String bobAddress = bob.getAddress();\n    int amount = 1000000;\n    await client.transferCoins(alice, bobAddress, amount);\n\n    // Get bob state\n    LibraAccountState bobState = await client.getAccountState(bobAddress);\n    print('bob state: ${bobState.balance}, ${bobState.sequenceNumber}');\n\n### Query Transaction with Sequence Number\n\nQuery detail of the transaction sending from alice to bob, implemented with Libra Canonical Deserialization:\n\n    LibraSignedTransactionWithProof lastTransaction = await client.getAccountTransaction(aliceAddress, aliceState.sequenceNumber);\n    print('publicKey from alice: ${LibraHelpers.byteToHex(lastTransaction.signedTransaction.publicKey)}');\n\n## License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiginex%2Flibra-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiginex%2Flibra-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiginex%2Flibra-core/lists"}