Exemplo n.º 1
0
def transferJson(fromName, toName, ammount, memo):

    stream = SIMPLE_TRANSFER_JSON.replace(TRANSFER_FROM_NAME,
                                          utils.quoteValue(fromName))

    stream = stream.replace(TRANSFER_TO_NAME, utils.quoteValue(toName))

    stream = stream.replace(TRANSFER_AMOUNT_NAME,
                            utils.quoteValue(str(ammount)))

    stream = stream.replace(TRANSFER_MEMO_NAME, utils.quoteValue(memo))

    return stream
Exemplo n.º 2
0
def newAccountJson(creatorName, accName, deposit, ownerKey, activeKey):

	stream = SIMPLE_NEW_ACCOUNT_JSON.replace(NEWACC_TRXACC_NAME, utils.quoteValue(creatorName))
	stream = stream.replace(NEWACC_CREATOR_NAME, utils.quoteValue(creatorName))

	stream = stream.replace(NEWACC_ACCOUNT_NAME, utils.quoteValue(accName))

	stream = stream.replace(NEWACC_OWNER_KEY, utils.quoteValue(ownerKey))
	stream = stream.replace(NEWACC_ACTIVE_KEY, utils.quoteValue(activeKey))
	stream = stream.replace(NEWACC_DEPOSIT_NAME, utils.quoteValue(str(deposit)))
	return stream
Exemplo n.º 3
0
def getAccountJson(accName):
    stream = GETACC_JSON.replace(GETACC_ACCOUNT_NAME,
                                 utils.quoteValue(accName))
    return stream