Added ispatial auth and call to rpc endpoint