bitcreditscc



Offline



Activity: 602

Merit: 500









Hero MemberActivity: 602Merit: 500 New/Custom RPC calls January 01, 2015, 02:49:58 AM #1 https://bitcointalk.org/index.php?topic=909391.0



I need help creating new RPC call list that can give me the following information or if you know how to change/add a few lines that will provide the following results. (explicitly)



1) count of all incoming wallet tx - then all incoing wallet tx by account

2) count of all outgoing wallet tx - then all outgoing tx by account



3) count of transactions to a specific address

4) count of transactions from a specific address



5) total value of all incoming wallet tx

6) total of all outgoing wallet tx



7) count of mined blocks by this specific wallet

8 ) total transactions in the entire blockchain

10) date of each accounts first tx



I have re-introduced IRC in my version of the wallet and wish to use it to automatically send payment requests (URIs), if anyone can help with that too



I need to make these changes in the core client as the information should be displayed there. I think once i get this i'll be all set and within a week or two i can explain what it is exactly i am up to.



Assistance is most appreciated.



**note i know of the existing call list and listtransactions, however it does not explicitly give these results. This is part of a series of questions stemming from herehttps://bitcointalk.org/index.php?topic=909391.0I need help creating new RPC call list that can give me the following information or if you know how to change/add a few lines that will provide the following results. (explicitly)1) count of all incoming wallet tx - then all incoing wallet tx by account2) count of all outgoing wallet tx - then all outgoing tx by account3) count of transactions to a specific address4) count of transactions from a specific address5) total value of all incoming wallet tx6) total of all outgoing wallet tx7) count of mined blocks by this specific wallet8 ) total transactions in the entire blockchain10) date of each accounts first txI have re-introduced IRC in my version of the wallet and wish to use it to automatically send payment requests (URIs), if anyone can help with that tooI need to make these changes in the core client as the information should be displayed there. I think once i get this i'll be all set and within a week or two i can explain what it is exactly i am up to.Assistance is most appreciated.**note i know of the existing call list and listtransactions, however it does not explicitly give these results. *Image Removed*

AWARD-WINNING

CASINO CRYPTO EXCLUSIVE

CLUBHOUSE 1500+

GAMES 2 MIN

CASH-OUTS 24/7

SUPPORT 100s OF

FREE SPINS PLAY NOW Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertised sites arenot endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.

gmaxwell

Legendary



Offline



Activity: 3178

Merit: 4298









StaffLegendaryActivity: 3178Merit: 4298 Re: New/Custom RPC calls January 01, 2015, 03:36:51 AM #2 Quote from: bitcreditscc on January 01, 2015, 02:49:58 AM I need help creating new RPC call list that can give me the following information or if you know how to change/add a few lines that will provide the following results. (explicitly)



1) count of all incoming wallet tx - then all incoing wallet tx by account

2) count of all outgoing wallet tx - then all outgoing tx by account

3) count of transactions to a specific address

5) total value of all incoming wallet tx

6) total of all outgoing wallet tx

7) count of mined blocks by this specific wallet

10) date of each accounts first tx

**note i know of the existing call list and listtransactions, however it does not explicitly give these results.

As you note, these are indirectly accomplished via listtransactions already. It's not going to be faster to generate them directly as it will take the same process as a listtransaction to handle them internally.



Since you need help to do so, perhaps adding RPCs aren't the best way to handle your needs.



Keep in mind that errors made while programming here may cause funds loss. The threshold for where you need to add something new should be accordingly somewhat high.



Quote 4) count of transactions from a specific address

Bitcoin transactions do not have from addresses.



Quote 8 ) total transactions in the entire blockchain

This data is in chainActive.Tip()->nChainTx



Quote I have re-introduced IRC in my version of the wallet and wish to use it to automatically send payment requests (URIs), if anyone can help with that too



If you're willing to trust a server to mediate communications, there are better options. Though, I won't if you really are willing... what happens when that IRC server replaces addresses in payment URIs?



Quote Assistance is most appreciated.

You haven't actually asked a question. By assistance do you mean "I'd like someone to do the work for me, for free, and I'm not even going to tell you why"? Thats what it sounds like, absent an actual specific question. If that isn't the impression you want to give you should try making it clear that you've attempted this stuff yourself already and ask specific questions.

As you note, these are indirectly accomplished via listtransactions already. It's not going to be faster to generate them directly as it will take the same process as a listtransaction to handle them internally.Since you need help to do so, perhaps adding RPCs aren't the best way to handle your needs.Keep in mind that errors made while programming here may cause funds loss. The threshold for where you need to add something new should be accordingly somewhat high.Bitcoin transactions do not have from addresses. https://iwilcox.me.uk/2014/no-from-address This data is in chainActive.Tip()->nChainTxIRC is a pretty crappy way to have a centralized server handle things... it's crappy because the server has few tools for DOS mitigation, because messages are very limited in size, and because it's frequently blocked.If you're willing to trust a server to mediate communications, there are better options. Though, I won't if you really are willing... what happens when that IRC server replaces addresses in payment URIs?You haven't actually asked a question. By assistance do you mean "I'd like someone to do the work for me, for free, and I'm not even going to tell you why"? Thats what it sounds like, absent an actual specific question. If that isn't the impression you want to give you should try making it clear that you've attempted this stuff yourself already and ask specific questions.

DannyHamilton



Offline



Activity: 2338

Merit: 1729









LegendaryActivity: 2338Merit: 1729 Re: New/Custom RPC calls January 01, 2015, 03:43:55 AM #3 Quote from: bitcreditscc on January 01, 2015, 02:49:58 AM - snip -

1) count of all incoming wallet tx - then all incoing wallet tx by account

2) count of all outgoing wallet tx - then all outgoing tx by account

- snip -



In my experience, "accounts" in Bitcoin Core do not work the way most people want them to work. Most people find that they'll be much better off implementing accounts outside of Bitcoin Core in their own system and just using Bitcoin Core as a gateway.



If you think that the accounts are going to meet your needs, or you've assumed that they will meet your needs, and you haven't taken the time yet to understand exactly how Bitcoin Code manages accounts, then you are probably going to be unpleasantly surprised later.



Quote from: bitcreditscc on January 01, 2015, 02:49:58 AM - snip -

I need help creating new RPC call list

- snip -



Certainly. My rates are 0.33 BTC per hour, and I'll need well specified requirements for the exact behavior you expect for each new call. Furthermore, you'll need to have reasonable expectations for performance given the constraints of scanning the entire blockchain for some of the information that you are requesting. In my experience, "accounts" in Bitcoin Core do not work the way most people want them to work. Most people find that they'll be much better off implementing accounts outside of Bitcoin Core in their own system and just using Bitcoin Core as a gateway.If you think that the accounts are going to meet your needs, or you've assumed that they will meet your needs, and you haven't taken the time yet to understand exactly how Bitcoin Code manages accounts, then you are probably going to be unpleasantly surprised later.Certainly. My rates are 0.33 BTC per hour, and I'll need well specified requirements for the exact behavior you expect for each new call. Furthermore, you'll need to have reasonable expectations for performance given the constraints of scanning the entire blockchain for some of the information that you are requesting. https://21.co/dannyhamilton/



My Merit sending policy: My Merit sending policy: https://bitcointalk.org/index.php?topic=2822212.0

bitcreditscc



Offline



Activity: 602

Merit: 500









Hero MemberActivity: 602Merit: 500 Re: New/Custom RPC calls January 01, 2015, 04:21:28 AM #4 Quote from: gmaxwell on January 01, 2015, 03:36:51 AM Quote from: bitcreditscc on January 01, 2015, 02:49:58 AM I need help creating new RPC call list that can give me the following information or if you know how to change/add a few lines that will provide the following results. (explicitly)



1) count of all incoming wallet tx - then all incoing wallet tx by account

2) count of all outgoing wallet tx - then all outgoing tx by account

3) count of transactions to a specific address

5) total value of all incoming wallet tx

6) total of all outgoing wallet tx

7) count of mined blocks by this specific wallet

10) date of each accounts first tx

**note i know of the existing call list and listtransactions, however it does not explicitly give these results.

As you note, these are indirectly accomplished via listtransactions already. It's not going to be faster to generate them directly as it will take the same process as a listtransaction to handle them internally.



Since you need help to do so, perhaps adding RPCs aren't the best way to handle your needs.



Keep in mind that errors made while programming here may cause funds loss. The threshold for where you need to add something new should be accordingly somewhat high.



Quote 4) count of transactions from a specific address

Bitcoin transactions do not have from addresses.



Quote 8 ) total transactions in the entire blockchain

This data is in chainActive.Tip()->nChainTx



Quote I have re-introduced IRC in my version of the wallet and wish to use it to automatically send payment requests (URIs), if anyone can help with that too



If you're willing to trust a server to mediate communications, there are better options. Though, I won't if you really are willing... what happens when that IRC server replaces addresses in payment URIs?



Quote Assistance is most appreciated.

You haven't actually asked a question. By assistance do you mean "I'd like someone to do the work for me, for free, and I'm not even going to tell you why"? Thats what it sounds like, absent an actual specific question. If that isn't the impression you want to give you should try making it clear that you've attempted this stuff yourself already and ask specific questions.



As you note, these are indirectly accomplished via listtransactions already. It's not going to be faster to generate them directly as it will take the same process as a listtransaction to handle them internally.Since you need help to do so, perhaps adding RPCs aren't the best way to handle your needs.Keep in mind that errors made while programming here may cause funds loss. The threshold for where you need to add something new should be accordingly somewhat high.Bitcoin transactions do not have from addresses. https://iwilcox.me.uk/2014/no-from-address This data is in chainActive.Tip()->nChainTxIRC is a pretty crappy way to have a centralized server handle things... it's crappy because the server has few tools for DOS mitigation, because messages are very limited in size, and because it's frequently blocked.If you're willing to trust a server to mediate communications, there are better options. Though, I won't if you really are willing... what happens when that IRC server replaces addresses in payment URIs?You haven't actually asked a question. By assistance do you mean "I'd like someone to do the work for me, for free, and I'm not even going to tell you why"? Thats what it sounds like, absent an actual specific question. If that isn't the impression you want to give you should try making it clear that you've attempted this stuff yourself already and ask specific questions.

great, thanks you are right, i wasn't as articulate as i should have been. I asked for help to add the as RPCs since i thought that was the most efficient way but if another way exists i would be thankful if you point me in the right direction.



Quote Bitcoin transactions do not have from addresses. https://iwilcox.me.uk/2014/no-from-address

lol, i know...i need to figure out a way to monitor the relationship between every other "address" in the chain and 3 very specific "addresses"



This data is in chainActive.Tip()->nChainTx



One down!!!! this puts some of the stuff miles ahead, thanks!



Quote IRC is a pretty crappy way to have a centralized server handle things... it's crappy because the server has few tools for DOS mitigation, because messages are very limited in size, and because it's frequently blocked.



If you're willing to trust a server to mediate communications, there are better options. Though, I won't if you really are willing... what happens when that IRC server replaces addresses in payment URIs?

I am limited in means and technical know-how, i have the idea and can only think of crude implementations to get the result i want, and as you have pointed out, it's a leaking sieve. if you know of a more secure way for clients to pass URIs automatically to a set 3 addresses, then please share. I learn as i go along and refine my ideas on the fly, i'm actually putting most of what you say onto a note so i think along those lines.



Quote By assistance do you mean "I'd like someone to do the work for me, for free, and I'm not even going to tell you why"? Thats what it sounds like, absent an actual specific question. If that isn't the impression you want to give you should try making it clear that you've attempted this stuff yourself already and ask specific questions.

Yes i'd like someone to help me, free if they are willing. As for why i don't just come right out and say it, any person who gives assistance is likely to already know what i am attempting to do, if not i will tell them, and if they are crazy enough, they may just decide to stick around and see how far I can go. And you already know what i am doing so you don't count. great, thanks you are right, i wasn't as articulate as i should have been. I asked for help to add the as RPCs since i thought that was the most efficient way but if another way exists i would be thankful if you point me in the right direction.lol, i know...i need to figure out a way to monitor the relationship between every other "address" in the chain and 3 very specific "addresses"One down!!!! this puts some of the stuff miles ahead, thanks!I am limited in means and technical know-how, i have the idea and can only think of crude implementations to get the result i want, and as you have pointed out, it's a leaking sieve. if you know of a more secure way for clients to pass URIs automatically to a set 3 addresses, then please share. I learn as i go along and refine my ideas on the fly, i'm actually putting most of what you say onto a note so i think along those lines.Yes i'd like someone to help me, free if they are willing. As for why i don't just come right out and say it, any person who gives assistance is likely to already know what i am attempting to do, if not i will tell them, and if they are crazy enough, they may just decide to stick around and see how far I can go. And you already know what i am doing so you don't count. *Image Removed*

bitcreditscc



Offline



Activity: 602

Merit: 500









Hero MemberActivity: 602Merit: 500 Re: New/Custom RPC calls January 01, 2015, 04:29:16 AM #5 Quote from: DannyHamilton on January 01, 2015, 03:43:55 AM Quote from: bitcreditscc on January 01, 2015, 02:49:58 AM - snip -

1) count of all incoming wallet tx - then all incoing wallet tx by account

2) count of all outgoing wallet tx - then all outgoing tx by account

- snip -



In my experience, "accounts" in Bitcoin Core do not work the way most people want them to work. Most people find that they'll be much better off implementing accounts outside of Bitcoin Core in their own system and just using Bitcoin Core as a gateway.



If you think that the accounts are going to meet your needs, or you've assumed that they will meet your needs, and you haven't taken the time yet to understand exactly how Bitcoin Code manages accounts, then you are probably going to be unpleasantly surprised later.



Quote from: bitcreditscc on January 01, 2015, 02:49:58 AM - snip -

I need help creating new RPC call list

- snip -



Certainly. My rates are 0.33 BTC per hour, and I'll need well specified requirements for the exact behavior you expect for each new call. Furthermore, you'll need to have reasonable expectations for performance given the constraints of scanning the entire blockchain for some of the information that you are requesting.

In my experience, "accounts" in Bitcoin Core do not work the way most people want them to work. Most people find that they'll be much better off implementing accounts outside of Bitcoin Core in their own system and just using Bitcoin Core as a gateway.If you think that the accounts are going to meet your needs, or you've assumed that they will meet your needs, and you haven't taken the time yet to understand exactly how Bitcoin Code manages accounts, then you are probably going to be unpleasantly surprised later.Certainly. My rates are 0.33 BTC per hour, and I'll need well specified requirements for the exact behavior you expect for each new call. Furthermore, you'll need to have reasonable expectations for performance given the constraints of scanning the entire blockchain for some of the information that you are requesting.

You are right, and at some point DOS and any other number of issues will bite me where it hurts, but i'd like to get a proof of concept out first, then if it can be scaled, push on with refinements.



The reason it has to be in the core client , is that it will be decentralized. for now it seems like i am building up to a centralized model, and it is the only way i see of testing the theory, once i prove it works i'll then start asking questions that will lead to decentralization.



For now i need this model to work. Already i have been warned away from IRC ,so i need to re-think how i a going to handle that part



As for your rates, hell if i could pay that much, i would. I have faith in my idea, just wish my wallet had as much faith in me. You are right, and at some point DOS and any other number of issues will bite me where it hurts, but i'd like to get a proof of concept out first, then if it can be scaled, push on with refinements.The reason it has to be in the core client , is that itbe decentralized. for now it seems like i am building up to a centralized model, and it is the only way i see of testing the theory, once i prove it works i'll then start asking questions that will lead to decentralization.For now i need this model to work. Already i have been warned away from IRC ,so i need to re-think how i a going to handle that partAs for your rates, hell if i could pay that much, i would. I have faith in my idea, just wish my wallet had as much faith in me. *Image Removed*

DannyHamilton



Offline



Activity: 2338

Merit: 1729









LegendaryActivity: 2338Merit: 1729 Re: New/Custom RPC calls January 01, 2015, 04:36:46 AM #6 Quote from: bitcreditscc on January 01, 2015, 04:21:28 AM - snip -

I am limited in means and technical know-how, i have the idea and can only think of crude implementations to get the result i want,

- snip -



Ideas that aren't supported by basic knowledge and understanding of the underlying technology really don't impress me much.



There are a lot of people who have "the idea" for a perpetual motion (or "over unity") machine, but they can only think of crude implementations that don't "quite" accomplish their exact goal. They generally feel that all they need is a bit of refinement on their basic idea. Because of their lack of basic knowledge, they aren't capable of seeing the underlying flaws in their goals.



Unless you are willing to provide significant details on exactly what you're trying to accomplish, and are willing to accept the knowledge of well studied "experts", I suspect that your "project" won't get very far at all. Ideas that aren't supported by basic knowledge and understanding of the underlying technology really don't impress me much.There are a lot of people who have "the idea" for a perpetual motion (or "over unity") machine, but they can only think of crude implementations that don't "quite" accomplish their exact goal. They generally feel that all they need is a bit of refinement on their basic idea. Because of their lack of basic knowledge, they aren't capable of seeing the underlying flaws in their goals.Unless you are willing to provide significant details on exactly what you're trying to accomplish, and are willing to accept the knowledge of well studied "experts", I suspect that your "project" won't get very far at all. https://21.co/dannyhamilton/



My Merit sending policy: My Merit sending policy: https://bitcointalk.org/index.php?topic=2822212.0

bitcreditscc



Offline



Activity: 602

Merit: 500









Hero MemberActivity: 602Merit: 500 Re: New/Custom RPC calls January 01, 2015, 04:52:06 AM

Last edit: January 01, 2015, 05:06:23 AM by bitcreditscc #7 Quote from: DannyHamilton on January 01, 2015, 04:36:46 AM Quote from: bitcreditscc on January 01, 2015, 04:21:28 AM - snip -

I am limited in means and technical know-how, i have the idea and can only think of crude implementations to get the result i want,

- snip -



Ideas that aren't supported by basic knowledge and understanding of the underlying technology really don't impress me much.



There are a lot of people who have "the idea" for a perpetual motion (or "over unity") machine, but they can only think of crude implementations that don't "quite" accomplish their exact goal. They generally feel that all they need is a bit of refinement on their basic idea. Because of their lack of basic knowledge, they aren't capable of seeing the underlying flaws in their goals.



Unless you are willing to provide significant details on exactly what you're trying to accomplish, and are willing to accept the knowledge of well studied "experts", I suspect that your "project" won't get very far at all.

Ideas that aren't supported by basic knowledge and understanding of the underlying technology really don't impress me much.There are a lot of people who have "the idea" for a perpetual motion (or "over unity") machine, but they can only think of crude implementations that don't "quite" accomplish their exact goal. They generally feel that all they need is a bit of refinement on their basic idea. Because of their lack of basic knowledge, they aren't capable of seeing the underlying flaws in their goals.Unless you are willing to provide significant details on exactly what you're trying to accomplish, and are willing to accept the knowledge of well studied "experts", I suspect that your "project" won't get very far at all.

So you envision a world where one has the idea, the knowledge and understanding and of course the means to back up their idea?



I'm sorry , but in my world that does not compute. The general way things work for us mere mortals, is we come up with an idea, we investigate, poke and ask questions. We then try our best to get it to work even just once under lab conditions, we then tell people and show them. From there on, experts in the field become very interested and it takes on a whole different face, and if it's good enough backing will materialize. You are saying that in order to have an idea that you can take seriously, i need to know all there is to know about bitcoin protocol. If i have said something that is out of it's scope, please point it out. If only experts are allowed to bring up ideas and try things out, then why do we call ourselves a community? What is the point in opensource if people cant play around with it?



Just to add some sugar in my tea, the points raised and answers given by gmaxwell have already pushed me past a lot of stuff i had on my mind as well as giving me new things to worry about and new problems to solve. Basically in one post he answered 1 question directly, gave e an idea on what to do for 7 others and warned me away from a fatal mistake.



Please stop trying to poke holes in my kite and help me build a stronger one. I can understand your frustration with people's questions and ideas sometimes, i just need a helping hand. So you envision a world where one has the idea, the knowledge and understanding and of course the means to back up their idea?I'm sorry , but in my world that does not compute. The general way things work for us mere mortals, is we come up with an idea, we investigate, poke and ask questions. We then try our best to get it to work even just once under lab conditions, we then tell people and show them. From there on, experts in the field become very interested and it takes on a whole different face, and if it's good enough backing will materialize. You are saying that in order to have an idea that you can take seriously, i need to know all there is to know about bitcoin protocol. If i have said something that is out of it's scope, please point it out. If only experts are allowed to bring up ideas and try things out, then why do we call ourselves a community? What is the point in opensource if people cant play around with it?Just to add some sugar in my tea, the points raised and answers given by gmaxwell have already pushed me past a lot of stuff i had on my mind as well as giving me new things to worry about and new problems to solve. Basically in one post he answered 1 question directly, gave e an idea on what to do for 7 others and warned me away from a fatal mistake.Please stop trying to poke holes in my kite and help me build a stronger one. I can understand your frustration with people's questions and ideas sometimes, i just need a helping hand. *Image Removed*

bitcreditscc



Offline



Activity: 602

Merit: 500









Hero MemberActivity: 602Merit: 500 Re: New/Custom RPC calls January 01, 2015, 05:12:29 AM #8 So, to keep this thread on track:-



1) count of all incoming wallet tx - then all incoing wallet tx by account

2) count of all outgoing wallet tx - then all outgoing tx by account



3) count of transactions to a specific address

4) count of transactions from a specific address



5) total value of all incoming wallet tx

6) total of all outgoing wallet tx



7) count of mined blocks by this specific wallet

8 ) total transactions in the entire blockchain answered by gmaxwell

10) date of each accounts first tx



I have re-introduced IRC in my version of the wallet and wish to use it to automatically send payment requests (URIs), if anyone can help with that too need to rethink that





The others i have been warned to be careful in how it's done.



So if someone can give me number 1 and number 3 , that will take another 4 off the list.



Again, doing it outside the client is not ideal since i need to use the stats inside the client. *Image Removed*

gmaxwell

Legendary



Offline



Activity: 3178

Merit: 4298









StaffLegendaryActivity: 3178Merit: 4298 Re: New/Custom RPC calls January 01, 2015, 12:31:51 PM #10 Ah, it's the standard game of trying to con the Bitcoin technical community into doing the engineering work for some competing altcoin which doesn't actually have any technical backing.



Thanks Shorena.