Coder Social home page Coder Social logo

php-wallet-sample's Introduction

BlockCypher REST API PHP Sample

Build Status

WARNING: IT'S ONLY A SAMPLE!. If you use this sample, you do so at your own risk.

Overview

This is a sample that showcases the features of BlockCypher's REST APIs. The application uses the SDKs provided by BlockCypher. It is a Bitcoin wallet.

Pre-requisites

  • PHP 5.4+
  • curl, openssl PHP extensions
  • Composer for installing the Rest API SDK.

Running the app

You can use the PHP Built-in web server:

cd web
php -S localhost:8000 server.php

References

TODO

  • Login using BlockCypher API token.
  • Validate address in "Send Funds".
  • Add edit pages for wallets, address, txs.
  • Client-side signing.
  • Support for multisign addresses.
  • Console commands for basic app commands: create wallet, address and transaction.
  • Add behat, phpspec, tests, ...
  • ...

Upcoming features

  • Extract common code to independent package (make some parts reusable to another Symfony or XXX framework projects)
  • Extract common code to independent Symfony bundle (make some parts reusable to another Symfony projects)

php-wallet-sample's People

Contributors

josecelano avatar matthieu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-wallet-sample's Issues

Testnet transactions not working

Hello,

I am using your curl api, and its been working great. Until now. I have two testnet addresses and private keys, I am using compressed pubkeys and the correct private keys and addresses. It was all working fine and things have gone wrong, I will either get a "not enough inputs for outputs" error for an address which clearly has enough funds OR the transaction will go through but never actually gets recognized by the test3 blockchain and the transaction ID does not work when looking it up on 3rd party testnet blockexplorers such as testnet.blockchain.info, strangely it does come up on your blockexplorer though.

Digging a bit deeper I realize the issue is that i am using your api for the transactions but using testnet.blockchain.info to check balances and transaction history, the problem is with address mjLnTNcCWZ5baqSYWnsrATPBBfPMvfd82N, the transactions are not getting any confirmations.

Why is this? Is it an attack on test3 chain?

Id like to be able to test my app across multiple blockexplorer api's, is this a bug. If you would like more info please let me know. Your thoughts would be appreciated.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.