Skip to Content
Packages@tuwaio/satellite-evmInterfacesEVMConnection

EVMConnection

Defined in: satellite-evm/src/types.ts:11 

An EVM connection in the Satellite Connect store: BaseConnector from @tuwaio/satellite-core plus the wagmi connector of the wallet. chainId is a numeric chain ID and signMessage signs with wagmi’s signMessage.

Extends

Properties

address

address: string

Defined in: satellite-core/src/types.ts:34 

Connected account: a 0x address for EVM, a base58 address for Solana.

Inherited from

BaseConnector.address


chainId

chainId: string | number

Defined in: satellite-core/src/types.ts:39 

Chain the wallet is connected to: a numeric chain ID for EVM (for example 1), a cluster moniker for Solana (for example "devnet" or "mainnet").

Inherited from

BaseConnector.chainId


connector?

optional connector?: ConnectorEVM

Defined in: satellite-evm/src/types.ts:13 

The wagmi connector of the connected wallet.


connectorType

connectorType: `evm:${string}` | `solana:${string}` | `starknet:${string}`

Defined in: satellite-core/src/types.ts:32 

Connector identifier in the form "<adapter>:<wallet>", for example "evm:metamask" or "solana:phantom".

Inherited from

BaseConnector.connectorType


icon?

optional icon?: string

Defined in: satellite-core/src/types.ts:50 

Wallet icon provided by the wallet, usually a data: URI.

Inherited from

BaseConnector.icon


isConnected

isConnected: boolean

Defined in: satellite-core/src/types.ts:48 

Whether the wallet reports the account as connected.

Inherited from

BaseConnector.isConnected


isContractAddress

isContractAddress: boolean

Defined in: satellite-core/src/types.ts:46 

true when the account is a smart contract (for example a Safe), as reported by checkIsContractAddress.

Inherited from

BaseConnector.isContractAddress


rpcURL

rpcURL: string

Defined in: satellite-core/src/types.ts:44 

RPC URL of the connected chain, set by the adapter. EVM: the default RPC URL of the chain definition; Solana: the URL configured for the cluster in the adapter’s rpcUrls.

Inherited from

BaseConnector.rpcURL


signMessage?

optional signMessage?: (message) => Promise<string>

Defined in: satellite-core/src/types.ts:58 

Signs a UTF-8 message with the connected account and resolves to the signature: a hex string for EVM (personal_sign), a base58 string for Solana (solana:signMessage). Rejects when the user declines.

Parameters

message

string

The message to sign.

Returns

Promise<string>

The signature.

Inherited from

BaseConnector.signMessage

Last updated on