Skip to content

create

Creates a new nautilus instance.

Usage

import { Nautilus } from '@deltadao/nautilus'
import { Wallet } from 'ethers'
 
const nautilus = await Nautilus.create( 
    new Wallet('0x1234') 
) 

Returns

Nautilus

The nautilus instance using the provided ethers signer.

Parameters

signer

The signer to use with this nautilus instance. This will be used to handle all required payments and transactions.

import { Wallet } from 'ethers'
 
const nautilus = Nautilus.create(
    new Wallet('0x1234') 
)

config (optional)

Optional custom configuration overwrites to use for the created nautilus instance.

import { Wallet } from 'ethers'
 
const nautilus = Nautilus.create(
    new Wallet('0x1234'),
    { providerUri: 'https://provider.dev.pontus-x.eu' } 
)

Learn more about custom configuration.