B4J Library Bitcoin

wonder

Expert
Licensed User


This lib provides easy access to Bitcoin prices and blockchain info.
#TODO: Write a proper opening post.

- The methods are well documented.
- The B4A version is work-in-progress.
- Please donate.

Real-time price example:
B4X:
'Non-UI application (console / server application)
#Region Project Attributes
    #CommandLineArgs:
    #MergeLibraries: True
#End Region

Sub Process_Globals
    Dim MainLoop As Timer
    Dim tools As BTCTools
End Sub

Sub AppStart (Args() As String)
    tools.Initialize
    MainLoop.Initialize("MainLoop", 333)
    MainLoop.Enabled = True
    StartMessageLoop
End Sub

Sub MainLoop_Tick
    Log("1 BTC = " & tools.Value("USD") & " USD")
End Sub
 

Attachments

Top