getaccount

wallet

v0.10.1

getaccount "bitcoinaddress"

Returns the account associated with the given address.

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

Result:
"accountname" (string) the account address

Examples:
> bitcoin-cli getaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccount", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ"] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/
Don't trust. Verify. Docs extracted from src/rpcwallet.cpp#L253-L266.