Skip to content

Latest commit

 

History

History
198 lines (95 loc) · 4.69 KB

peculium_core_version.md

File metadata and controls

198 lines (95 loc) · 4.69 KB

Module peculium_core_version

Bitcoin Version Message 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 version message objects.

Data Types

Function Index

from_address/1Returns the address of the sending client of a given version message.
nonce/1Returns the nonce of a given version message.
services/1Returns the service bitset of a given version message.
start_height/1Returns the start height of a given version message.
timestamp/1Returns the timestamp of a given version message.
to_address/1Returns the address of the target client of a given version message.
user_agent/1Returns the user agent of a given version message.
version/1Returns the version of a given version message.

Function Details

from_address/1


from_address(VersionMessage::version_message()) -> network_address()



Returns the address of the sending client of a given version message.

nonce/1


nonce(VersionMessage::version_message()) -> binary()



Returns the nonce of a given version message.

services/1


services(VersionMessage::version_message()) -> uint64_t()



Returns the service bitset of a given version message.

start_height/1


start_height(VersionMessage::version_message()) -> int32_t()



Returns the start height of a given version message.

timestamp/1


timestamp(VersionMessage::version_message()) -> int64_t()



Returns the timestamp of a given version message.

to_address/1


to_address(VersionMessage::version_message()) -> network_address()



Returns the address of the target client of a given version message.

user_agent/1


user_agent(VersionMessage::version_message()) -> binary()



Returns the user agent of a given version message.

version/1


version(VersionMessage::version_message()) -> int32_t()



Returns the version of a given version message.