update example for rpc provider
add method chain