コード例 #1
0
ファイル: fixtures.py プロジェクト: VeChainDEXCode/vvet
def solo_wallet():
    return Wallet.fromMnemonic(
        [
            "denial",
            "kitchen",
            "pet",
            "squirrel",
            "other",
            "broom",
            "bar",
            "gas",
            "better",
            "priority",
            "spoil",
            "cross",
        ]
    )
コード例 #2
0
connector = Connect("http://localhost:8669")

# VTHO token contract address
vtho_contract_address = "0x0000000000000000000000000000456e65726779"

# Set up the VTHO contract object
vtho_contract = Contract.fromFile("./VTHO.json")

# Set up the sender's wallet
sender = Wallet.fromMnemonic([
    "denial",
    "kitchen",
    "pet",
    "squirrel",
    "other",
    "broom",
    "bar",
    "gas",
    "better",
    "priority",
    "spoil",
    "cross",
])

# Set up the receiver's wallet (a brand new wallet)
receiver = Wallet.newWallet()

# Try to transfer 3 vtho from sender to receiver
if __name__ == "__main__":

    # Do: transfer 3 VTHO
    response = connector.transact(