Commit bd2c2e0d authored by liuyuhang's avatar liuyuhang

add chain33_GetAccounts to common

parent ca12ca02
......@@ -125,3 +125,9 @@ chain33_SignRawTx() {
echo "signedTx null error"
fi
}
chain33_GetAccounts() {
resp=$(curl -ksd '{"jsonrpc":"2.0","id":2,"method":"Chain33.GetAccounts","params":[{}]}' -H 'content-type:text/plain;' ${MAIN_HTTP})
echo "$resp"
}
......@@ -39,11 +39,6 @@ chain33_NewAccount() {
echo "$glAddr"
}
chain33_GetAccounts() {
resp=$(curl -ksd '{"jsonrpc":"2.0","id":2,"method":"Chain33.GetAccounts","params":[{}]}' -H 'content-type:text/plain;' ${MAIN_HTTP})
echo "$resp"
}
chain33_SendTransaction() {
rawTx=$1
addr=$2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment