Skip to content

Latest commit

 

History

History
172 lines (81 loc) · 3.79 KB

peculium_core_transaction.md

File metadata and controls

172 lines (81 loc) · 3.79 KB

Module peculium_core_transaction

Bitcoin Transaction Utilities. Copyright (c) 2013 Alexander Færøy

Authors: Alexander Færøy (ahf@0x90.dk).

Description

This module contains utilities for manipulating and using Bitcoin Transaction objects.

Data Types

Function Index

hash/1Returns the hash of a given transaction.
inputs/1Returns the transaction inputs of a given transaction.
is_coinbase/1Check if a given transaction is a coinbase transaction.
lock_time/1Returns the lock time of a given transaction.
outputs/1Returns the transaction outputs of a given transaction.
version/1Returns the version of a given transaction.

Function Details

hash/1


hash(Transaction::transaction()) -> hash()



Returns the hash of a given transaction.

inputs/1


inputs(Transaction::transaction()) -> [transaction_input()]



Returns the transaction inputs of a given transaction.

is_coinbase/1


is_coinbase(Transaction::transaction()) -> boolean()



Check if a given transaction is a coinbase transaction.

lock_time/1


lock_time(Transaction::transaction()) -> uint32_t()



Returns the lock time of a given transaction.

outputs/1


outputs(Transaction::transaction()) -> [transaction_output()]



Returns the transaction outputs of a given transaction.

version/1


version(Transaction::transaction()) -> uint32_t()



Returns the version of a given transaction.