// First import the client and the typesimport{Client,Profile,Cast}from"farcaster_api_js";// Initialize the client using a web3js object or an URL to a HTTP Providerconstclient=newClient("https://rinkeby.infura.io/v3/XXXXXXXXXXXX");// Get profile info for a specific username, returns the "Profile" typeclient.getProfile("markus").then(console.log)// Get the Casts of a user, returns an array of the type "Cast"client.getCasts("markus").then(console.log)