connectNetwork
Connects to the Solana network through an RPC endpoint
Last updated
Connects to the Solana network through an RPC endpoint
Last updated
network (optional, default: default RPC network): string - the RPC URL to use for the connection
commitment (optional, default: "confirmed"
): string - the commitment to use for the connection
object ({"network": "...", "commitment": "..."}
) - the connection details
network: string ("
"
) - the RPC URL used for the connection
commitment: string ("confirmed"
) - the commitment used for the connection
SOL Pay SDK Fatal Error: Invalid network ${network}.
- network not specified or unable to connect to the network