Create a Vertex client
The VertexClient
Object
VertexClient
ObjectTo start using the SDK, you need an initialized VertexClient
from the client
package. The VertexClient
is the main entrypoint to common APIs.
Create a VertexClient
object
VertexClient
objectThe VertexClient
class is rarely instantiated directly. Instead, call the createVertexClient
function from the client
package and provide the relevant parameters.
Import the dependencies
Create an Ethers Wallet object
For example, if interacting within a Node environment
Call createVertexClient
createVertexClient
The VertexClient
can be instantiated in the following modes:
testnet
: creates a Vertex client that connects to thearbitrum-goerli
testnet network.mainnet
: creates a Vertex client that connects to thearbitrum-one
mainnet network.
Full example
Run the script, this example uses ts-node
:
If no errors are thrown, you're good to go!
Last updated