-
Hello, https://xchscan.com/txns/0x82ceceac027a8fc345f8f0bfcd493636a5c0b920121f72d4206fd6ad05f501f6 Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
If you have the Json representation of the transaction, it looks like the {
"additions": [
{
"amount": 13279172454,
"parent_coin_info": "0x7b22ca61b363bde0140e90a6a8222f833b3b32764d16cb6b5dbb6325a9bbc60a",
"puzzle_hash": "0x10ea5b5a00a2d5ef9a88e45d34a1268627665e26013ed008a6453bb86d5a31f5"
}
],
"amount": 13279172454,
"confirmed": true,
"confirmed_at_height": 2048218,
"created_at_time": 1653907970,
"fee_amount": 0,
"memos": {},
"name": "0x6efe4a390f6ee36333c18784b9d1be48be3fa00fcf7a45feadd354da9b36a2e0",
"removals": [],
"sent": 0,
"sent_to": [],
"spend_bundle": null,
"to_address": "xch1zr49kksq5t27lx5gu3wnfgfxscnkvh3xqyldqz9xg5amsm26x86sh0kzhl",
"to_puzzle_hash": "0x10ea5b5a00a2d5ef9a88e45d34a1268627665e26013ed008a6453bb86d5a31f5",
"trade_id": null,
"type": 0,
"wallet_id": 1
} using var cts = new CancellationTokenSource(1500);
_ = await _theWallet.LogIn(cts.Token);
var wallet = new Wallet(1, _theWallet);
var transactions = await wallet.GetTransactions(cancellationToken: cts.Token);
var transaction = transactions.FirstOrDefault();
Assert.IsNotNull(transaction);
var link = $"https://xchscan.com/txns/{transaction.Name}"; |
Beta Was this translation helpful? Give feedback.
-
@dkackman do you have any clue why I can't manage to make it work as intended? |
Beta Was this translation helpful? Give feedback.
-
I am not sure. It isn't working for me at the moment with a quick test with a recent farming payout transaction, though I swear it worked when I posted my response above!. A couple things:
in wallet_rpc_api.py get_transaction which is what I based my response on. Their txnhash must be something subtly different. return {
"transaction": (await self._convert_tx_puzzle_hash(tr)).to_json_dict_convenience(self.service.config),
"transaction_id": tr.name,
} |
Beta Was this translation helpful? Give feedback.
I am not sure. It isn't working for me at the moment with a quick test with a recent farming payout transaction, though I swear it worked when I posted my response above!. A couple things:
name
withtransaction_id
and I can;t think of any reason why the would use something else, but it sure looks like they do.in wallet_rpc_api.py get_transaction which is what I based my response on. Their txnhash must be something subtly different.
re…