Popularity
0.3
Declining
Activity
0.0
Stable
0
2
0

Description

BestMixer.io — is the Bitcoin Mixer or Bitcoin Tumbler, the service that complicates or makes almost impossible tracking of your transactions in Bitcoin Network. Bitcoin mixer or bitcoin tumbler breaks connection between your old and new address sending money from you to other people and their money to you.

Programming language: Go
License: MIT License
Tags: API     Third-party APIs     Client     Library     Cryptocurrencies     Bitcoin    

BestMixer.io API alternatives and similar packages

Based on the "Third-party APIs" category.
Alternatively, view BestMixer.io API alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of BestMixer.io API or a related project?

Add another 'Third-party APIs' Package

README

BestMixer.io API

Build Status Go Report Card GoDoc [License MIT](LICENSE)

bestmixer is a Go client library for the BestMixer.io API.

Start using it

  1. Download and install it:

    $ go get github.com/MarinX/bestmixer
    
  2. Import it in your code:

    import "github.com/MarinX/bestmixer"
    
  3. (Optional) Run test

    $ go test -v
    

API

creating a client

    // Create a new BestMixer.io client with http.DefaultClient
    // replace api_key with your own key
    client := bestmixer.New("api_key", nil)

    // if you have your own http.Client you can supply it
    // as a second param
    client := bestmixer.New("api_key", myHttpClient)

Code

Info

    codeInfo, err := client.Code.Info("bm_code")
    if err != nil {
        fmt.Println(err)
        return
    }
    fmt.Println("BTC:", codeInfo.BTC)
    fmt.Println("BCH:", codeInfo.BCH)
    fmt.Println("LTC:", codeInfo.LTC)

Fee

Info

    feeInfo, err := client.Fee.Info()
    if err != nil {
        fmt.Println(err)
        return
    }
    fmt.Println("fee btc:", feeInfo.BTC)
    fmt.Println("fee bch:", feeInfo.BCH)
    fmt.Println("fee ltc:", feeInfo.LTC)

Order

creating order

    order, err := client.Order.Create(
        "bm_code",
        bestmixer.CoinBTC,
        1.001,
        []bestmixer.Output{
            bestmixer.Output{
                Address: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                Percent: 5.5,
                Delay:   33,
            },
        })
    if err != nil {
        fmt.Println(err)
        return
    }
    fmt.Println("Order created:", order.OrderID)

creating fixed order

    orderFixed, err := client.Order.CreateFixed(
        "bm_code",
        bestmixer.CoinBTC,
        1.001,
        []bestmixer.Output{
            bestmixer.Output{
                Address: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                Percent: 0.1,
                Delay:   33,
            },
        })
    if err != nil {
        fmt.Println(err)
        return
    }
    fmt.Println("Order fixed created:", orderFixed.OrderID)

get order info

    orderStatus, err := client.Order.Info("my_order_id")
    if err != nil {
        fmt.Println(err)
        return
    }
    fmt.Println("Order status:", orderStatus.Status)

License

This library is under the MIT License


*Note that all licence references and agreements mentioned in the BestMixer.io API README section above are relevant to that project's source code only.