Skip to content

Selecting asset for paying fee's #22

Description

@anthon-alindada

I've tried building a transaction where i set the asset fee for transfer but it's still using 1.3.0(BTS) for the fee. Can someone help me with this. Here's the code i'm using.

from bitshares.transactionbuilder import TransactionBuilder
from bitsharesbase.operations import Transfer
tx = TransactionBuilder()
tx.appendOps(Transfer(**{
    "fee": {"amount": 0, "asset_id": "1.3.121"},
    "from": "1.2.124",
    "to": "1.2.1241",
    "amount": {"amount": 500, "asset_id": "1.3.121"},
}))
tx.appendSigner("xeroc", "active")
tx.sign()
tx.broadcast()

Am i doing it wrong? If so please show me how to set asset fee thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions