blockchain-0.0.3: Generic blockchain implementation.

Safe HaskellNone
LanguageHaskell2010

Data.Blockchain.Builder

Synopsis

Documentation

createSimpleTransaction Source #

Arguments

:: KeyPair

KeyPair for source address. PrivateKey will be used to sign transaction.

-> PublicKey

Target address

-> Word

Transaction value

-> Word

Fee

-> Blockchain Validated

Validated blockchain

-> IO (Either CreateTransactionException Transaction) 

Create a transaction from a single public key address.