Skip to content

Bitcoin/testnet transaction schema #1078

@matteo-cristino

Description

@matteo-cristino

Right now a bitcoin/testnet transaction is print as a base64 dictionary (using default encoding), e.g.

{
  "testnet_transaction": {
    "nHashType": "AAAAAQ==",
    "nLockTime": "AA==",
    "txIn": [
      {
        "address": {
          "network": "dGI=",
          "raw": "xRwg0j+JWVKWbCY3hnFd6D/D1NM=",
          "version": 0
        },
        "amountSpent": "ATdk",
        "sequence": "/////w==",
        "sigwit": "AQ==",
        "txid": "3W08WP4M2HKecxVFgwMH/N02YgwUvFmIMI4EhdI+pTw=",
        "vout": 1
      }
    ],
    "txOut": [
      {
        "address": {
          "network": "dGI=",
          "raw": "9HAvm/7kKw1Pm6Ql+YNDeTiT8vQ=",
          "version": 0
        },
        "amount": "AQ=="
      },
      {
        "address": {
          "network": "dGI=",
          "raw": "xRwg0j+JWVKWbCY3hnFd6D/D1NM=",
          "version": 0
        },
        "amount": "ATbW"
      }
    ],
    "version": "Ag=="
  }
}

a schema can be used to improve readability

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions