bitsharesbase.signedtransactions module

class bitsharesbase.signedtransactions.Signed_Transaction(*args, **kwargs)[source]

Bases: graphenebase.signedtransactions.Signed_Transaction

Create a signed transaction and offer method to create the signature

Parameters:
  • refNum (num) – parameter ref_block_num (see getBlockParams)
  • refPrefix (num) – parameter ref_block_prefix (see getBlockParams)
  • expiration (str) – expiration date
  • operations (Array) – array of operations
clear() → None. Remove all items from od.
copy() → a shallow copy of od
data

Read data explicitly (backwards compatibility)

default_prefix = 'BTS'
deriveDigest(chain)[source]
detail(*args, **kwargs)[source]
fromkeys()

Create a new ordered dictionary with keys from iterable and values set to value.

get()

Return the value for key if key is in the dictionary, else default.

getChainParams(chain)[source]
getKnownChains()[source]
getOperationKlass()[source]
get_default_prefix()[source]
id

The transaction id of this transaction

items() → a set-like object providing a view on D's items
json()
keys() → a set-like object providing a view on D's keys
known_chains = {'BTS': {'chain_id': '4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8', 'core_symbol': 'BTS', 'prefix': 'BTS'}, 'TEST': {'chain_id': '39f5e2ede1f8bc1a3a54a7914414e3779e33193f1f5693510e73cb7a87617447', 'core_symbol': 'TEST', 'prefix': 'TEST'}}
move_to_end()

Move an existing element to the end (or beginning if last is false).

Raise KeyError if the element does not exist.

operation_klass

alias of bitsharesbase.objects.Operation

pop(k[, d]) → v, remove specified key and return the corresponding

value. If key is not found, d is returned if given, otherwise KeyError is raised.

popitem()

Remove and return a (key, value) pair from the dictionary.

Pairs are returned in LIFO order if last is true or FIFO order if false.

setdefault()

Insert key with a value of default if key is not in the dictionary.

Return the value for key if key is in the dictionary, else default.

sign(wifkeys, chain=None)[source]

Sign the transaction with the provided private keys.

Parameters:
  • wifkeys (array) – Array of wif keys
  • chain (str) – identifier for the chain
toJson()
update([E, ]**F) → None. Update D from dict/iterable E and F.

If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]

values() → an object providing a view on D's values
verify(pubkeys=[], chain=None)[source]