Giter Club home page Giter Club logo

docs's People

Contributors

acityinohio avatar agonzalezro avatar anfedorov avatar blackxored avatar bootstraponline avatar chrissrogers avatar coliff avatar cvkef avatar dependabot-preview[bot] avatar dependabot[bot] avatar djpowers avatar dlackty avatar greysteil avatar jdahdah avatar josecelano avatar kevin-buttercoin avatar lord avatar maks3w avatar marcguyer avatar masterodin avatar matthieu avatar mikeralphson avatar pomier avatar quentinlesceller avatar realityking avatar rezanachmad avatar rickyrauch avatar ritesh99rakesh avatar rlord avatar victorquinn avatar

Stargazers

 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

docs's Issues

Why 404?

I try get txSkeleton
post to https://api.blockcypher.com/v1/btc/test3/txs/new/
{ "inputs": [ { "addresses": [ "mgqXuAznRc7vgCjFfFn842WrbiXtBgHvXN" ] } ], "outputs": [ { "addresses": [ "mgdYwFuDkXdWnktXm5Ap6BisRGQaumhU5z" ], "value": 500000 } ], "fees": 12000 }

But in response I get 404 error.
See insomnia timeline

POST /v1/btc/test3/txs/new/ HTTP/1.1
Host: api.blockcypher.com
User-Agent: insomnia/6.3.2
Content-Type: application/json
Accept: */*
Content-Length: 217
| {
| 	"inputs": [
| 		{
| 			"addresses": [
| 				"mgqXuAznRc7vgCjFfFn842WrbiXtBgHvXN"
| 			]
| 		}
| 	],
| 	"outputs": [
| 		{
| 			"addresses": [
| 				"mgdYwFuDkXdWnktXm5Ap6BisRGQaumhU5z"
| 			],
| 			"value": 500000
| 		}
| 	],
| 	"fees": 12000
| }
 upload completely sent off: 217 out of 217 bytes
HTTP/1.1 301 Moved Permanently
Server: nginx/1.10.3 (Ubuntu)
Date: Tue, 16 Apr 2019 11:03:45 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 0
Connection: keep-alive
Location: /v1/btc/test3/txs/new

 Connection #11 to host api.blockcypher.com left intact
 Issue another request to this URL: 'https://api.blockcypher.com/v1/btc/test3/txs/new'
 Switch from POST to GET
 Found bundle for host api.blockcypher.com: 0x28fd17bf3f0 [can pipeline]
 Re-using existing connection! (#11) with host api.blockcypher.com
 Connected to api.blockcypher.com (52.2.101.52) port 443 (#11)
 GET /v1/btc/test3/txs/new HTTP/1.1
 Host: api.blockcypher.com
 User-Agent: insomnia/6.3.2
 Content-Type: application/json
 Accept: */*
 HTTP/1.1 404 Not Found
 Server: nginx/1.10.3 (Ubuntu)
 Date: Tue, 16 Apr 2019 11:03:45 GMT
 Content-Type: application/json
 Content-Length: 36
 Connection: keep-alive
 Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
 Access-Control-Allow-Methods: GET, POST, PUT, DELETE
 Access-Control-Allow-Origin: *
 X-Ratelimit-Remaining: 99

 Received 36 B chunk
 Connection #11 to host api.blockcypher.com left intact

Faucet documentation incorrect

Bug Description
Faucet docs indicate it supports btc testnet, but it does not

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot 2021-07-20 at 07 29 47

Screenshot 2021-07-20 at 07 33 15

Screenshot 2021-07-20 at 07 32 16

Browser (please complete the following information):

  • Chrome 91.0.4472.164 (Official Build) (x86_64)

Call out code examples where bcy/test is used (in python docs)

From @acityinohio's #26

$ ack "coin_symbol='bcy'"
source/includes/_microtx.md
76:>>> simple_spend_tx(from_privkey_hex='97838249d77bfa65f97be02b63fd1b7bb6a58474c7c22784a0da63993d1c2f90', to_address='C1rGdt7QEPGiwPMFhNKNhHmyoWpa5X92pn', to_satoshis=10000, coin_symbol='bcy')

source/includes/_tx.md
742:>>> simple_spend_tx(from_privkey_hex='97838249d77bfa65f97be02b63fd1b7bb6a58474c7c22784a0da63993d1c2f90', to_address='C1rGdt7QEPGiwPMFhNKNhHmyoWpa5X92pn', to_satoshis=1000000, coin_symbol='bcy')
749:>>> unsigned_tx = create_unsigned_tx(inputs=inputs, outputs=outputs, coin_symbol='bcy')
1874:>>> decodetx(tx_hex=tx_hex, coin_symbol='bcy')

source/index.md
890:>>> send_faucet_coins(address_to_fund='CFqoZmZ3ePwK5wnkhxJjJAQKJ82C7RJdmd', satoshis=10000, api_key='YOUR_TOKEN', coin_symbol='bcy')

Call out code examples where /bcy/test is used

We use bcy/test from time to time to make more sensitive examples involving signing/private keys/faucets more "copy-pasteable" (also so we can occasionally post full private keys).

That said, can be confusing switching from one to the other without calling it. Going to make an effort to call this out in the code comments.

Creating transaction docs incorrect for Javascript

Bug Description
When creating a Bitcoin transaction using the example Javascript code, bitcoinjs-lib no longer works. This is due to ECPair being removed from the module: bitcoinjs/bitcoinjs-lib@e5a7730.

Documentation should be updated with an appropriate solution or a comment stating v5.2.0 is required.

Screenshots
Screenshot

Browser (please complete the following information):

  • Version 96.0.4664.45 (Official Build) (64-bit)

Typo on requstb.in

I'd create a pull requests but then I'd have to fork now and fork again once the repo is in blockcypher so just being lazy here ;)

Address Full Endpoint 'confirmations' flag not working

Bug Description
I am using the Address Full endpoint to get a list of transactions for a BTC address. I am using the confirmations flag set to 1. But I am still getting sent a list of unconfirmed transactions.

Screenshots
See screenshot below:

Screenshot_1

Make clear that all API's are JSON/HTTP

Tag @matthieu, @Catheryne for discussion:

I think the language can/should be tweaked so that it's more clear that we support any language that can make JSON HTTP calls (every modern language), and that the API is just JSON over http.

For me, this is most prominent in two places:

  1. "Official" language support: maybe weaken this, we don't want to make it seem like other languages aren't going to work for some reason. My suggestion: change to "BlockCypher Supported Language SDKs" or "Officially Supported Language SDKs" to make it clear that the support is for the language library, not the language itself. Maybe additionally, make it explicit that we support any language that can make HTTP calls and parse JSON.

  2. Frequent use of "cURL" : to experienced readers, curl is more or less a synonym for "GET over HTTP", but for inexperienced readers this may seem like some magic tool and the connection may not be obvious.

For example:

If not, or you’d rather write your own bindings, we always support cURLing endpoints directly, which is the default code sample you’ll see to the right.

My suggestion would be something along the lines of:

Of course, all our API's are standard HTTP endpoints using JSON formatted responses, so any language (or cURL from the command-line) will work just fine.

Update wallet section

A few things to change:

  • Get Wallet Name/return general wallet info
  • Change $NAME/Address behavior to only return addresses (no token/name)
  • Merge Gustav's delete changes

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.