BitShares Forum

Main => Technical Support => Topic started by: ngkong on March 26, 2015, 07:33:57 am

Title: wallet_account_transaction_history
Post by: ngkong 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
Title: Re: wallet_account_transaction_history
Post by: pc 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
Title: Re: wallet_account_transaction_history
Post by: ngkong 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?
Title: Re: wallet_account_transaction_history
Post by: xeroc 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