Local Testnet
How to create a wallet
#allow listening on port 80 and 443
sudo sysctl -w net.ipv4.ip_unprivileged_port_start=80#run the local testnet
TESTNET=true WORKFOLDER=/tmp/testnet HTTP_IPV4=127.0.0.1 HTTP_PORT=80 ./amadeusdkey0 = Application.fetch_env!(:ama, :keys) |> Enum.at(0)
key1 = Application.fetch_env!(:ama, :keys) |> Enum.at(1)
Testnet.call(key0.seed, "Coin", "transfer", [key1.pk, "1", "AMA"])%{
entry_hash: "7ELicUfkqo69cdJcTsbinpKyQEbuS5raAHgSHmVknYPk",
error: :ok,
hash: "DhzK2FGMsSLFiqHujSzkeo1s7nKKqqWAHnydRShMPn5G",
result: %{error: "ok", exec_used: "10000000"}
}Last updated