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
amountofsymbolfromfrom_acctoto_accwith the memomemo. You must have the active key forfrom_accin 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_accdoes not have enough token balance to send this amountAccountNotFound – When either the
from_accorto_accdoes not existTokenNotFound – When the requested token symbol does not exist
beem.exceptions.MissingKeyError – No active key found for the
from_accin 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 }