A web based interface to the Bitcoin API JSON-RPC

Command: getaccount

The getaccount RPC returns the name of the account associated with the given address.

Parameter #1—a Bitcoin address
Result—an account name

A P2PKH or P2SH Bitcoin address belonging either to a specific account or the default account (“”).
null
getaccount "address"

DEPRECATED. Returns the account associated with the given address.

Arguments:
1. "address"         (string, required) The bitcoin address for account lookup.

Result:
"accountname"        (string) the account address

Examples:
> bitcoin-cli getaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccount", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/