eos icon indicating copy to clipboard operation
eos copied to clipboard

Is there a RPC API to find all transactions in a given block?

Open kristieguo opened this issue 8 years ago • 2 comments

Hi, I am using API get_transactions to query all transactions for a given account:

I was wondering if there is a rpc api to find all transactions in a given block? Thanks.

kristieguo avatar May 09 '18 13:05 kristieguo

Not currently, but the history plugin could be modified to support this.

bytemaster avatar May 09 '18 18:05 bytemaster

@bytemaster OK thank you. I tried to use get_account(account_name) to query the balance for a given account, however the response I got is as below. "eos_balance", "staked_balance" and "unstaking_balance" no longer included in this API?

{  
   "account_name":"tester",
   "permissions":[  
      {  
         "perm_name":"active",
         "parent":"owner",
         "required_auth":{  
            "threshold":1,
            "keys":[  
               {  
                  "key":"EOS7icMoRSRVnQz1NoCuP5e8BKxTfnYDZXqF3kqLtb3UkidXD4R2v",
                  "weight":1
               }
            ],
            "accounts":[  

            ]
         }
      },
      {  
         "perm_name":"owner",
         "parent":"",
         "required_auth":{  
            "threshold":1,
            "keys":[  
               {  
                  "key":"EOS7icMoRSRVnQz1NoCuP5e8BKxTfnYDZXqF3kqLtb3UkidXD4R2v",
                  "weight":1
               }
            ],
            "accounts":[  

            ]
         }
      }
   ]
}

kristieguo avatar May 10 '18 04:05 kristieguo