Author Topic: Can I see unconfirmed transactions?  (Read 3343 times)

0 Members and 1 Guest are viewing this topic.

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
In my test case there were a bunch (like 20) of this kind:
{
"txid" : "135d239f677d220568709f0f3c5b8db220eaf073bd806db02532da3fccb48a35",
"version" : 1,
"locktime" : 0,
"vin" : [
{
"txid" : "cc0f5acac12049426e60fcaa6b245ba444e378caaf4b50289f2daeb04ac6bc93",
"vout" : 0,
"scriptSig" : {
"asm" : "3045022100c26d8b48e63da9aa6789d887c864ff7ca44483149310e96784a95a5ce5c575850220218c9f37e6e556ab019ddd645441576677f78c180b4388925a674e8f05461b9c01 032c33c149731bcb11ecd2f3e93c765da41b8885d087b2aafb50b3fa75d0a5a641",
"hex" : "483045022100c26d8b48e63da9aa6789d887c864ff7ca44483149310e96784a95a5ce5c575850220218c9f37e6e556ab019ddd645441576677f78c180b4388925a674e8f05461b9c0121032c33c149731bcb11ecd2f3e93c765da41b8885d087b2aafb50b3fa75d0a5a641"
},


and just one with the other kind (i.e. with address and amount like in your bolded example).

 So the address is of the receiver.

Thanks
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

Offline testz

I was back here to explain why it is hard to believe the client does not store that info and I see that it does.

Thanks.

This is a question?  :)


There was no question there, but actually I have follow up question:

From the result of decoderawtransaction <hex string>
How do I figure out:
-sender
-receiver
-amount

I'm not sure where sender, but I mark as bold receivers and amounts.

decoderawtransaction 010000000193bcc64ab0ae2d9f28504bafca78e344a45b246baafc606e424920c1ca5a0fcc000000006b483045022100c26d8b48e63da9aa6789d887c864ff7ca44483149310e96784a95a5ce5c575850220218c9f37e6e556ab019ddd645441576677f78c180b4388925a674e8f05461b9c0121032c33c149731bcb11ecd2f3e93c765da41b8885d087b2aafb50b3fa75d0a5a641ffffffff0200c2eb0b000000001976a9143745ff24efa9ece32719711caca954fc039fb0fe88ac60c6ee03000000001976a914ba6f1afd6be25d69e98e584cbcdaca7e3d5556e488ac00000000

{
"txid" : "135d239f677d220568709f0f3c5b8db220eaf073bd806db02532da3fccb48a35",
"version" : 1,
"locktime" : 0,
"vin" : [
{
"txid" : "cc0f5acac12049426e60fcaa6b245ba444e378caaf4b50289f2daeb04ac6bc93",
"vout" : 0,
"scriptSig" : {
"asm" : "3045022100c26d8b48e63da9aa6789d887c864ff7ca44483149310e96784a95a5ce5c575850220218c9f37e6e556ab019ddd645441576677f78c180b4388925a674e8f05461b9c01 032c33c149731bcb11ecd2f3e93c765da41b8885d087b2aafb50b3fa75d0a5a641",
"hex" : "483045022100c26d8b48e63da9aa6789d887c864ff7ca44483149310e96784a95a5ce5c575850220218c9f37e6e556ab019ddd645441576677f78c180b4388925a674e8f05461b9c0121032c33c149731bcb11ecd2f3e93c765da41b8885d087b2aafb50b3fa75d0a5a641"
},
"sequence" : 4294967295
}
],
"vout" : [
{
"value" : 2.00000000,
"n" : 0,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 3745ff24efa9ece32719711caca954fc039fb0fe OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a9143745ff24efa9ece32719711caca954fc039fb0fe88ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"Pcy3A5uYKRu5e5jAxfT1QXAFmLfG4ML5s2"
]
}
},
{
"value" : 0.65980000,
"n" : 1,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 ba6f1afd6be25d69e98e584cbcdaca7e3d5556e4 OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a914ba6f1afd6be25d69e98e584cbcdaca7e3d5556e488ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"PpvYvW7UcDuHkEEBCLahr2nDgGdpbvZRxX"
]
}
}
]
}

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
I was back here to explain why it is hard to believe the client does not store that info and I see that it does.

Thanks.

This is a question?  :)


There was no question there, but actually I have follow up question:

From the result of decoderawtransaction <hex string>
How do I figure out:
-sender
-receiver
-amount
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

Offline testz

I was back here to explain why it is hard to believe the client does not store that info and I see that it does.

Thanks.

This is a question?  :)

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
If anybody else cares:

I was told, by reputable source, that what I asked for is not possible through the client.

It's not simple but possible, you can get transaction from memory pool by commands:
Code: [Select]
getrawmempool
getrawtransaction <txid>
decoderawtransaction <hex string>

I was back here to explain why it is hard to believe the client does not store that info and I see that it does.

Thanks.
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
If anybody else cares:

I was told, by reputable source, that what I asked for is not possible through the client.

It's not simple but possible, you can get transaction from memory pool by commands:
Code: [Select]
getrawmempool
getrawtransaction <txid>
decoderawtransaction <hex string>

Wow, learn something new every day
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline testz

If anybody else cares:

I was told, by reputable source, that what I asked for is not possible through the client.

It's not simple but possible, you can get transaction from memory pool by commands:
Code: [Select]
getrawmempool
getrawtransaction <txid>
decoderawtransaction <hex string>

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
If anybody else cares:

I was told, by reputable source, that what I asked for is not possible through the client.
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
Actually this lists my transactions.

I am trying to see the transactions my wallet knows about but they are not in a block yet.

[EDIT]Typing slow ...
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Hmm .. but that only shows transactions that concern your addresses ... afair there is a parameter "txindex" which can somehow be used for all txs .. but i have no clue

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
« Last Edit: June 18, 2014, 07:51:19 pm by tonyk »
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Oh .. in pts you can use
listtransactions

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
Thanks! but Method not found
It's PTS question
« Last Edit: June 18, 2014, 07:43:18 pm by tonyk »
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Blockchain_get_pending_transactions

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
PTS/ protoshares-qt; Windows question

How do you see all (not just yours) unconfirmed (transmitted but not included in a block) transactions?

 Thanks.
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.