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

gettransaction method not found #232

Closed
GrailFinder opened this issue Feb 19, 2021 · 2 comments
Closed

gettransaction method not found #232

GrailFinder opened this issue Feb 19, 2021 · 2 comments

Comments

@GrailFinder
Copy link

defi-cli gettransaction returns

error code: -32601
error message:
Method not found

What behavior did you expect?

https://developer.bitcoin.org/reference/rpc/gettransaction.html

How reliably can you reproduce the issue, what are the steps to do so?

./defi-cli gettransaction "daaabd7f2f28d8c48f5a121bebab32f23cbee19b4a3f3d6cedbbc09146048aed"
block 11111 with single tx

getrawtransaction kind of works; for ex (same tx):

./defi-cli "daaabd7f2f28d8c48f5a121bebab32f23cbee19b4a3f3d6cedbbc09146048aed" false "da32b4dbda3b16766cf4fbce51ac29be15ecb5514809384a84e4780f22591108"  

returns

020000000001010000000000000000000000000000000000000000000000000000000000000000f
fffffff0402672b00ffffffff030034e230040000001976a914a242da9ba2e9a2a554051a559411
040881951b1c88ac009435770000000017a914dd7730517e0e4969b4e43677ff5bee682e53420a8
70000000000000000266a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b4
8bebd836974e8cf9012000000000000000000000000000000000000000000000000000000000000
0000000000000

What version of DeFi Blockchain are you using, where did you get it (website, self-compiled, etc)?

tried with https://github.com/DeFiCh/ain/releases/tag/v1.4.5 (and v1.4.4)
defichain-1.4.5-x86_64-pc-linux-gnu.tar.gz

For the GUI-related issue on Linux provide names and versions of a distro, a desktop environment and a graphical shell (if relevant).

OS: Arch Linux x86_64
Host: A320M-S2H V2
Kernel: 5.10.16-arch1-1

@uzyn
Copy link
Contributor

uzyn commented Mar 5, 2021

@GrailFinder It works on mine:

$ defi-cli gettransaction 8ffcd901d54ce370e942f1f804b44eef934f721847c624987351b7abf75e8755
{
  "amount": 0.00000000,
  "confirmations": 3,
  "blockhash": "c5b2edf63881af78122b4975d1b1488459c1af2b17ad9fbb69cc4ff7c8caf710",
  "blockindex": 17,
  "blocktime": 1614921292,
  "txid": "8ffcd901d54ce370e942f1f804b44eef934f721847c624987351b7abf75e8755",
  "walletconflicts": [
  ],
  "time": 1614921256,
  "timereceived": 1614921256,
  "bip125-replaceable": "no",
  "details": [
  ],
  "hex": "0400000000010537c0d60e471e5d599c2bc4abcc17d92ea5760d4d1e897dcc95d11ab7031cd888000000006a47304402204ce1cd44fb3f872fd98b2ed76f3c29c6cc002c81f639a3e3323096143d682d6e022075a6d7d15abf38413cc806b67b3dceb48ab98935ab10d64a875a0e10714566d2012103cbfa48e90d78dbf320dfc876e1f5e7ea5dbe26af14ba7a2e12aba3e5c6644893feffffffdcdfdbe713f01c0e78798344e58488329a636b16e1d5c798fb1054d32dfd854a02000000171600145d35efb3d3eef8393278caa24ebaeb78a23852d6feffffff508d30efdc9c7013cc325e5ddb2ab922b7f03392602d98747615d34f66cc55f4000000006a473044022024bba375fd98e3c82091a99fd8884440a950667024dfc2123bb5173f3dc096d0022039917f668e3578bba8ef0f50185e021af0998647a23e5ab8112f514144989ba701210295a89ae9baa6f2c8dfb2535660aa6fe7d6d424b294eea8adb27f60844f748edefeffffff16153e94bdb21ef06bdefe50bbdeffc4376e3a5f368637411b69ee11816ea158000000006a47304402206c73c6d79af73c7c2f75234d685c19e521a3b1aee726e6fd32c2e4e6c90b08f1022071c1574394ee38f5b9a206fd7c7087fe1570f97871e2d2846a052d7f3c4aeac40121022cc85e3c3e936eb976273db2405960fa016c0e2d4726d70f2525748b62d061f3feffffff8c71a729aa1821d4c45e781ffa2ba426ccb4d2bc160da49738ca05de8184fdcb000000006a47304402203b5adacef63a478e4fdb9b94ee75d7d230c5606563286db1a9169d8fba4af9b70220081b581a08b773a208897cdb9cc81268e730811cdbf838e32a66edb9704a5c65012103baf3601b067235f358cb9d0c882da508d9e2d7f1d18b471338d28ebe014c59c1feffffff0300ca9a3b000000001c6a1a4466547843015263944ddd81ed99acf02eb34652217af9d42adb0000204aa9d10100001976a91449e48faf7e3d30fce1e9efb6b611acfd4f1738be88ac004c9966ee0000000017a914dcc7ef84d70f7f69cea3ea803bf178c966047f6f870000024730440220554f8f59d28cb25ab1f9bb387eeef454dd4cf16f7c2ce6d4db567e0c28490c6d02206df290d17e0be9f95fe436d5e18f8f63ddf50b8e8c846e116608d99bc87258ba012103357948188f4271bd44ee178d1ee16b9affa4b02ba874934be2ba8bdbf566424600000000000000"
}

Am I missing the issue?

@Bushstar
Copy link
Member

Bushstar commented Mar 5, 2021

@GrailFinder also, in your call to getrawtransaction specify true not false to see a human readable printout of the transaction.

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

4 participants