BlocktrailSdk


Client

Contains methods to retreive data from the blockchain using the Blocktrail API.

Functions and values

Function or valueDescription
GetAddress addr
Signature: addr:string -> Address

Will retrieve a specific address containing basic info such as the current balance, the total amount received, and the number of transactions made.

GetAllBlocks (page, limit, sort_dir)
Signature: (page:int * limit:int * sort_dir:string) -> PagingResponse<Block>

Get all blocks

GetBlock block
Signature: block:string -> Block

Retrieve a specific block

GetLastBlock ()
Signature: unit -> Block

Retrieve the latest block

GetTransaction trans
Signature: trans:string -> Transaction

Retrieve a specific address

Fork me on GitHub