Listtransactions

From MintCoin
Jump to: navigation, search

{{#seo: |title= What is JSON-RPC – MintCoin Wiki |keywords=python json rpc,json rpc problem,what is json rpc,json rpc java,how to use json rpc,json rpc example python,node js json rpc,java json rpc example |description=JSON-RPC is a remote procedure call Protocol that uses JSON to encode messages. }}

listtransactions[edit]

Note: Returns the current MintCoin address for receiving payments to this account.If the account doesn’t exist, it creates both the account and a new address for receiving payment. Once a payment has been received to an address, future calls to this RPC for the same account will return a different address.

MintCoin Version: MintCoin v2.0.0

BitCoin core:


Parameters:

Parameter #1—an account name (Leave blank for the default account)

Help: listtransactions [account] [count=10] [from=0] Returns up to [count] most recent transactions skipping the first [from] transactions for account [account].


Result:

a MintCoin address

Command:

 ./mintcoind listtransactions "CF PROJECT 2"

result[edit]

{

       "account" : "CF PROJECT 2",
       "address" : "MYUYLDWNuNt63pKM54rFnf3vtH47iyWH1s",
       "category" : "receive",
       "amount" : 100.00000000,
       "confirmations" : 555529,
       "blockhash" : "81d7651f51e68e5614274046043e974d19353394e2802580121a03654b5daad3",
       "blockindex" : 2,
       "blocktime" : 1540456139,
       "txid" : "71563d030eab1172c26164cbb8b763b364fa81a205d780b1831f44dd11dd5e9c",
       "time" : 1540456139,
       "timereceived" : 1541232602
   },

Help function[edit]

Command:

 ./mintcoind help listtransactions


listtransactions [account] [count=10] [from=0]

Returns up to [count] most recent transactions skipping the first [from] transactions for account [account].

References[edit]

Documentation for MintCoin Core users and developers