Chains

Block model

sf.bitcoin.type.v1.Block

sf.bitcoin.type.v1.Block

stringhash = 1

the block hash Bitcoin core reverses the byte order of the hash when printing it out has Hex, to prevent the end user from making a mistake we store it as a string directly

int32size = 3

The block size

int32stripped_size = 4

The block size excluding witness data

int32weight = 5

The block weight as defined in BIP 141

int64height = 6

The block height or index

int32version = 7

The block version

stringversion_hex = 8

The block version formatted in hexadecimal

stringmerkle_root = 9

The merkle root

Transaction array

int64time = 11

The block time expressed in UNIX epoch time

int64mediantime = 12

The median block time expressed in UNIX epoch time

uint32nonce = 13

The nonce

stringbits = 14

The bits

doubledifficulty = 15

The difficulty

stringchainwork = 16

Expected number of hashes required to produce the chain up to this block (in hex)

uint32n_tx = 17

The number of transactions in the block

stringprevious_hash = 18

The hash of the previous block

sf.bitcoin.type.v1.Transaction

stringhex = 1

The serialized, hex-encoded data for 'txid'

stringtxid = 2

The transaction id

stringhash = 3

The transaction hash (differs from txid for witness transactions)

int32size = 4

The serialized transaction size

int32vsize = 5

The virtual transaction size (differs from size for witness transactions)

int32weight = 6

The transaction's weight (between vsize4-3 and vsize4)

uint32version = 7

The version

uint32locktime = 8

The lock time

Vin[]vin = 9
Vout[]vout = 10
stringblockhash = 11

the block hash

int64blocktime = 12

The block time expressed in UNIX epoch time

sf.bitcoin.type.v1.Vin

stringtxid = 1

The transaction id

uint32vout = 2

The output number

ScriptSigscript_sig = 3

The script

uint32sequence = 4

The script sequence number

string[]txinwitness = 5

hex-encoded witness data (if any)

stringcoinbase = 6

hex-encoded coinbase

sf.bitcoin.type.v1.Vout

doublevalue = 1

The value in BTC

uint32n = 2

index

ScriptPubKeyscript_pubKey = 3

sf.bitcoin.type.v1.ScriptSig

stringasm = 1

The asm

stringhex = 2

The hex

sf.bitcoin.type.v1.ScriptPubKey

stringasm = 1

the asm

stringhex = 2

the hex

int32req_sigs = 3

The required sigs

stringtype = 4

The type, eg 'pubkeyhash'

stringaddress = 5

bitcoin address

string[]addresses = 6

bitcoin addresses (deprecated, empty when 'address' is set)