Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About vin attribute in getRawTransaction #2

Open
lostncg opened this issue Mar 24, 2018 · 0 comments
Open

About vin attribute in getRawTransaction #2

lostncg opened this issue Mar 24, 2018 · 0 comments

Comments

@lostncg
Copy link

lostncg commented Mar 24, 2018

as Example, link to neoscan

NeoPHP Response

array:13 [▼
  "txid" => "0xd1cef7b3e5afc71617f2a9b0203ad5351a678077690ffe626e1bb6ade1d51bcf"
  "size" => 202
  "type" => "ContractTransaction"
  "version" => 0
  "attributes" => []
  "vin" => array:1 [▼
    0 => array:2 [▼
      "txid" => "0x808252f3bf6e4d561c29643c9ebf0181ae40a59219c6b79990a415a335c44e5b"
      "vout" => 0
    ]
  ]
  "vout" => array:1 [▼
    0 => array:4 [▼
      "n" => 0
      "asset" => "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b"
      "value" => "200"
      "address" => "AanTXadhgdHzGbmy5ZBPXxR4iPHMivzVPZ"
    ]
  ]
  "sys_fee" => "0"
  "net_fee" => "0"
  "scripts" => array:1 [▶]
  "blockhash" => "0x1173c981404a74d47d6500b9187366eaf3a53d233be517e2ad69d3c2c243d717"
  "confirmations" => 191
  "blocktime" => 1521875926
]

NeoScan API Response

array:21 [▼
  "vouts" => array:1 [▼
    0 => array:4 [▼
      "value" => 200.0
      "n" => 0
      "asset" => "NEO"
      "address" => "AanTXadhgdHzGbmy5ZBPXxR4iPHMivzVPZ"
    ]
  ]
  "vin" => array:1 [▼
    0 => array:5 [▼
      "value" => 200.0
      "txid" => "808252f3bf6e4d561c29643c9ebf0181ae40a59219c6b79990a415a335c44e5b"
      "n" => 0
      "asset" => "NEO"
      "address_hash" => "AHEeAEyCEBj6ev9etuASJS5oa5oZr8gw1L"
    ]
  ]
  "version" => 0
  "type" => "ContractTransaction"
  "txid" => "d1cef7b3e5afc71617f2a9b0203ad5351a678077690ffe626e1bb6ade1d51bcf"
  "time" => 1521875926
  "sys_fee" => "0"
  "size" => 202
  "scripts" => array:1 [▶]
  "script" => null
  "pubkey" => null
  "nonce" => null
  "net_fee" => "0"
  "description" => null
  "contract" => null
  "claims" => null
  "block_height" => 2059552
  "block_hash" => "1173c981404a74d47d6500b9187366eaf3a53d233be517e2ad69d3c2c243d717"
  "attributes" => []
  "asset_moved" => "c56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b"
  "asset" => null
]

My question is:
1.) Why vin doesn't show the sender address?
2.) there is a lot of attribute that didn't provide description, is it any documentation about model structure? (as example, what is "n" represent in vout?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant