How to get transaction from RPC?

Is there a way to get transaction from RPC?

I just find a URL https://localhost:9256/get_wallet_balance From Chia_WebSocket_MQTT/ at master · baerrs/Chia_WebSocket_MQTT · GitHub , but cant find any docs from offical docs. And, localhost:9256/get_wallet_transaction or get_transaction didn’t work.

this is what get_transaction looks like:

Calling it would look something like this

curl --insecure --cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
  --key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
  -X 'POST' \
  'https://localhost:9256/get_transaction' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{ "transaction_id": "0x029385409823092350923509sdkjn0239uroevn09y234" }'

What sort of message did you get when you saw it not work?

1 Like