privex.steemengine.SteemEngineToken.SteemEngineToken.send_token

SteemEngineToken.send_token(symbol, from_acc, to_acc, amount: Decimal, memo='', find_tx=True) dict[source]

Sends a given amount of symbol from from_acc to to_acc with the memo memo. You must have the active key for from_acc in your Beem wallet.

>>> SteemEngineToken().send_token('SGTK', 'someguy123', 'privex', Decimal('1.234'), 'my memo')
Parameters
  • symbol (str) – The symbol of the token you want to send

  • from_acc (str) – The account name you want to send from

  • to_acc (str) – The account name you want to send to

  • amount (Decimal) – The amount of tokens to send. Will be casted to Decimal()

  • memo – The memo to send with. If not specified, will sent with blank memo

  • find_tx – If you don’t care about info such as the TXID, and what block it’s in, set to False.

Raises
  • ArithmeticError – When the amount is lower than the lowest amount allowed by the token’s precision

  • NotEnoughBalance – When from_acc does not have enough token balance to send this amount

  • AccountNotFound – When either the from_acc or to_acc does not exist

  • TokenNotFound – When the requested token symbol does not exist

  • beem.exceptions.MissingKeyError – No active key found for the from_acc in beem wallet

Return dict

If TX was found on chain, more in-depth data including TXID, see below

{
    transaction_id,
    ref_block_num,
    ref_block_prefix,
    expiration,
    operations,
    extensions,
    signatures,
    block_num,
    transaction_num
}
Return dict

If TX not found on chain, returns broadcast info:

{
    expiration,
    ref_block_num,
    ref_block_prefix,
    operations,
    extensions,
    signatures
}