Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: wallet_account_transaction_history  (Read 241 times)

0 Members and 1 Guest are viewing this topic.

Offline ngkong

  • Jr. Member
  • **
  • Posts: 21
    • View Profile
wallet_account_transaction_history
« on: March 26, 2015, 07:33:57 AM »

I have few questions about balance API:

1. When calling wallet_account_transaction_history it returns is_market and is_market_cancel, what do they mean?

2. How to find reference for bitshares asset_id, i know BTS is 0, what is asset_id for USD?

3. Calling wallet_account_balance will return:

Quote
Array
(
    [ 0 ] => Array
        (
            [ 0 ] => accountname
            [ 1 ] => Array
                (
                    [ 0 ] => Array
                        (
                            [ 0 ] => 0
                            [ 1 ] => 889000
                        )

                )

        )

)

which 0 represents asset_id? red, blue, or green?

Thank you
« Last Edit: March 26, 2015, 07:52:16 AM by ngkong »

Offline pc

  • Hero Member
  • *****
  • Posts: 1034
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BTS: cyrano
  • Witness: cyrano
  • Payrate: 100%
Re: wallet_account_transaction_history
« Reply #1 on: March 26, 2015, 08:38:30 AM »
I have few questions about balance API:

1. When calling wallet_account_transaction_history it returns is_market and is_market_cancel, what do they mean?

Market transactions a are generated internally when trades are executed, by applying the market logic to the existing bids/asks/shorts/covers. Not sure about is_market_cancel.



2. How to find reference for bitshares asset_id, i know BTS is 0, what is asset_id for USD?

blockchain_list_assets or blockchain_get_asset


3. Calling wallet_account_balance will return:

Quote
Array
(
    [ 0 ] => Array
        (
            [ 0 ] => accountname
            [ 1 ] => Array
                (
                    [ 0 ] => Array
                        (
                            [ 0 ] => 0
                            [ 1 ] => 889000
                        )

                )

        )

)

which 0 represents asset_id? red, blue, or green?

Thank you

green
Please vote for my BitShares witness "cyrano" and for my STEEM witness "cyrano.witness"!
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline ngkong

  • Jr. Member
  • **
  • Posts: 21
    • View Profile
Re: wallet_account_transaction_history
« Reply #2 on: March 26, 2015, 09:21:01 AM »
pc, thanks for your answer.

1 more question:

what is the max length of a memo message in a transaction?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12176
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: wallet_account_transaction_history
« Reply #3 on: March 26, 2015, 09:40:03 AM »
pc, thanks for your answer.

1 more question:

what is the max length of a memo message in a transaction?
https://github.com/BitShares/bitshares/blob/master/libraries/blockchain/include/bts/blockchain/config.hpp#L31
32 byte
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

 

Google+