I think library like BitcoinJ or python-bitcoin does the same (rpc call in the background). If that is true is there any reason behind using such libries in place of rpc call
For example:
(in case of python)
rpccall:
import requests
payload = {"jsonrpc":1,"id":"curltext","method":"getblockchaininfo","params"=[]}
response = requests.get(url, data=json.dumps(payload))
Library call:
import bitcoinrpc
conn = bitcoinrpc.connect_to_local()
info = conn.getblockchaininfo()
Why should i choose one approach over the other when they are working the same way? What is the diffrence in between them? And which approach executes faster?