{"id":26370290,"url":"https://github.com/ottodevs/bs-blockchain-hackathon","last_synced_at":"2026-02-05T06:30:58.048Z","repository":{"id":71768640,"uuid":"82935228","full_name":"ottodevs/bs-blockchain-hackathon","owner":"ottodevs","description":"Banco Sabadell Blockchain hackathon [Team's repo]","archived":false,"fork":false,"pushed_at":"2017-02-21T10:55:54.000Z","size":363,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-20T09:34:52.286Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"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/ottodevs.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-02-23T14:29:21.000Z","updated_at":"2021-10-22T17:34:09.000Z","dependencies_parsed_at":"2023-06-10T03:00:35.932Z","dependency_job_id":null,"html_url":"https://github.com/ottodevs/bs-blockchain-hackathon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ottodevs/bs-blockchain-hackathon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottodevs%2Fbs-blockchain-hackathon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottodevs%2Fbs-blockchain-hackathon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottodevs%2Fbs-blockchain-hackathon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottodevs%2Fbs-blockchain-hackathon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ottodevs","download_url":"https://codeload.github.com/ottodevs/bs-blockchain-hackathon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottodevs%2Fbs-blockchain-hackathon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29114910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T05:31:32.482Z","status":"ssl_error","status_checked_at":"2026-02-05T05:31:29.075Z","response_time":65,"last_error":"SSL_read: 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":[],"created_at":"2025-03-16T23:18:40.190Z","updated_at":"2026-02-05T06:30:58.042Z","avatar_url":"https://github.com/ottodevs.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"#Welcome to the Banc Sabadell Blockchain Hackathon\n\nThis is your team's base repository for the BS Hackathon, please clone it and upload all code and project resources here.\n\n##Our Ethereum network\n\nIn order to ease development during the event we've configured a private Ethereum network, this network is shared by all the teams and composed of several Linux virtual machines, each running a dedicated Ethereum node ([`geth`](https://github.com/ethereum/go-ethereum/wiki/geth)). Each team has access to its own unique VM:\n\n![Network](images/network.png)\n\nTo get a better idea of the network and its behavior you can have a look at the different network stats using our monitoring [tool](http://admin-hackathon.westeurope.cloudapp.azure.com/):\n\n![Network](images/monitor.png)\n\n###Access to your Ethereum node\n\nConnecting to your `geth` instance through **JSON-RPC**:\n\n* host: `[pending]`\n* port: `8545`\n\nIn case your project depends on additional software (e.g. Node) you have full access to the machine via **SSH**:\n\n* host: `[pending]`\n* user: `[pending]`\n* pasword: `[pending]`\n\n##BSToken contract\n\n![BSToken](images/bstoken.png)\n\nBSToken is a [digital token](https://www.ethereum.org/token) created exclusively by Banc Sabadell for this hackathon, you can integrate your Ethereum contracts with this token to create a variety of applications based on _tradable goods_ (E.g. [debt](https://forum.ethereum.org/discussion/2989/decentralized-system-for-securitizing-collateral-debt-obligations-using-the-ethereum-blockchain), [watts](http://www.coindesk.com/ethereum-used-first-paid-energy-trade-using-blockchain-technology/), etc. See [bs-scrow](https://github.com/BancoSabadell/bs-escrow) below for an example).\n\nBSToken is implemented with a set of Solidity contracts that follow the [ERC20](https://github.com/ethereum/EIPs/issues/20) token specification:\n\n```\n// Abstract contract for the full ERC 20 Token standard\n// https://github.com/ethereum/EIPs/issues/20\npragma solidity ^0.4.6;\n\ncontract Token {\n    function totalSupply() constant returns (uint256);\n    function balanceOf(address _owner) constant returns (uint256 balance);\n    function transfer(address _to, uint256 _value) returns (bool success);\n    function transferFrom(address _from, address _to, uint256 _value) returns (bool success);\n    function approve(address _spender, uint256 _value) returns (bool success);\n    function allowance(address _owner, address _spender) constant returns (uint256 remaining);\n\n    event Transfer(address indexed _from, address indexed _to, uint256 _value);\n    event Approval(address indexed _owner, address indexed _spender, uint256 _value);\n}\n```\n\nThe full contract(s) source code can be found [here](https://github.com/BancoSabadell/bs-token), including an utility JavaScript library.\n\n###Contract address\n\nThe BS Token contract is deployed at address: **`0x6c8f2a135f6ed072de4503bd7c4999a1a17f824b`**\n\n###Accounts per team (with a 1.000 token/ether balance)\n\naccount | password\n---\t | ---\n0x6c8f2a135f6ed072de4503bd7c4999a1a17f824b | 111111\n0x6c8f2a135f6ed072de4503bd7c4999a1a17f824b | 222222\n0x6c8f2a135f6ed072de4503bd7c4999a1a17f824b | 333333\n0x6c8f2a135f6ed072de4503bd7c4999a1a17f824b | 444444\n0x6c8f2a135f6ed072de4503bd7c4999a1a17f824b | 555555\n\n###Sample integration (Escrow contract)\n\n* [bs-escrow: Escrow contract and JavaScript library](https://github.com/BancoSabadell/bs-escrow)\n* [bs-escrow-android-sdk: Android SDK and sample App](https://github.com/BancoSabadell/bs-escrow-android-sdk)\n\n###Add tokens to an account using a credit card (Banking API)\n\nIf you want to add more tokens to an account or plan to accept payments in exchange of tokens we provide a simple REST API to add tokens to an account using a (test) credit card.\n\n![Redsys](images/redsys.png)\n\nThe API is located at: `127.0.0.1`, including de following endpoints:\n\n**Add tokens to an account**\n\n\tGET /bs_token/api/v1/cashIn\n\t\nThis call will return an HTML page that will inmediately redirect to the credit card payment form.\n\nParameters:\n\nname | description\n---\t | ---\naccount | Ethereum address\namount | token amount _(1 BST == 1/100 EUR)_\n\nExample ([View in browser](http://127.0.0.1/bs_token/api/v1/cashIn?amount=120\u0026address=0x6c8f2a135f6ed072de4503bd7c4999a1a17f824b)):\n\n\thttp://127.0.0.1/bs_token/api/v1/cashIn?amount=120\u0026address=0x6c8f2a135f6ed072de4503bd7c4999a1a17f824b\n\nTest credit card:\n\n* Number: `4548 8120 4940 0004`\n* Expiry date: `12/20`\n* Security code: `123`\n* CIP: `123456`\n\n##FAQ's\n* **Must our project rely on the token contract?** No, we provide the token and escrow contracts as an starting point or a base for *inspiration*.\n\n##Resources\n\n* [Ethereum JavaScript API](https://github.com/ethereum/wiki/wiki/JavaScript-API)\n* [web3.js](https://github.com/ethereum/web3.js/)\n* [Solidity](http://solidity.readthedocs.io/en/develop/)\n* [ERC: Token standard](https://github.com/ethereum/EIPs/issues/20)\n\n##Contact\n\nNeed help? Contact us at: [innodev@bancsabadell.com](mailto:innodev@bancsabadell.com)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fottodevs%2Fbs-blockchain-hackathon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fottodevs%2Fbs-blockchain-hackathon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fottodevs%2Fbs-blockchain-hackathon/lists"}