I am using the node: https://babylonnet.tezos.org.ua
I am using taquito node module to test a faucet account:
taquito.Tezos.setProvider({rpc:'https://babylonnet.tezos.org.ua'})
taquito.Tezos.importKey(email,password,mnemonic.join(" "),secret)
taquito.Tezos.contract.transfer({to:address,amount:amount})
.then(op=>{console.log(op.confirmation)})
.then(block=>{console.log(block)})
.catch(error=>{console.log(JSON.stringify(error))})
The output is:
{
"message": "Http error response: (400) Failed to parsed an argument in path. After \"chains/main/blocks/head/context/contracts/balance\", the value \"Cannot parse contract id\" is not acceptable for type \"contract_id\"",
"status": 400,
"statusText": "Bad Request",
"body": "Failed to parsed an argument in path. After \"chains/main/blocks/head/context/contracts/balance\", the value \"Cannot parse contract id\" is not acceptable for type \"contract_id\"",
"name": "HttpResponse"
}
How do i successfully send tez?