That new contract endpoint just creates contract addresses. If you just want to transfer tokens, then you want to create another wallet address. Since our test wallet is a single key wallet it only has one address. You will have to create another wallet to transfer to another address.
go run cmd/smartcontract/main.go gento create a new key/address.
- Create a new directory to run the new wallet from.
- Create a new config file that points to the new directory and contains your new key.
sourcethe new config and run
go run cmd/smartcontract/main.go syncto sync it.
sourcethe previous config, create a transfer json with the new address in it as a receiver, and build a transfer action and tx from it.