Class: Connection
connection.Connection
Connects an account to a given network via a given provider
Constructors
constructor
new Connection(networkId
, provider
, signer
, jsvmAccountId
)
Parameters
Name | Type |
---|---|
networkId | string |
provider | Provider |
signer | Signer |
jsvmAccountId | string |
Defined in
Properties
jsvmAccountId
Readonly
jsvmAccountId: string
Defined in
networkId
Readonly
networkId: string
Defined in
provider
Readonly
provider: Provider
Defined in
signer
Readonly
signer: Signer
Defined in
Methods
fromConfig
Static
fromConfig(config
): Connection
Parameters
Name | Type | Description |
---|---|---|
config | any | Contains connection info details |