Class: ExodusSolanaWalletAccount
Defined in: web3/web3-solana/src/wallet-standard/account.ts:25
Implements
WalletAccount
Constructors
Constructor
new ExodusSolanaWalletAccount(
__namedParameters
):ExodusSolanaWalletAccount
Defined in: web3/web3-solana/src/wallet-standard/account.ts:55
Parameters
Parameter | Type |
---|---|
__namedParameters | Omit <WalletAccount , "chains" | "features" > |
Returns
ExodusSolanaWalletAccount
Accessors
address
Get Signature
get address():
string
Defined in: web3/web3-solana/src/wallet-standard/account.ts:31
Address of the account, corresponding with a public key.
Returns
string
Implementation of
WalletAccount.address
chains
Get Signature
get chains():
"solana:mainnet"
[]
Defined in: web3/web3-solana/src/wallet-standard/account.ts:39
Chains supported by the account.
This must be a subset of the Wallet.chains | chains of the Wallet.
Returns
"solana:mainnet"
[]
Implementation of
WalletAccount.chains
features
Get Signature
get features(): (
"solana:signIn"
|"solana:signAndSendTransaction"
|"solana:signAndSendAllTransactions"
|"solana:signTransaction"
|"solana:signMessage"
)[]
Defined in: web3/web3-solana/src/wallet-standard/account.ts:43
Feature names supported by the account.
This must be a subset of the names of Wallet.features | features of the Wallet.
Returns
("solana:signIn"
| "solana:signAndSendTransaction"
| "solana:signAndSendAllTransactions"
| "solana:signTransaction"
| "solana:signMessage"
)[]
Implementation of
WalletAccount.features
icon
Get Signature
get icon():
undefined
|`data:image/svg+xml;base64,${string}`
|`data:image/webp;base64,${string}`
|`data:image/png;base64,${string}`
|`data:image/gif;base64,${string}`
Defined in: web3/web3-solana/src/wallet-standard/account.ts:51
Optional user-friendly icon for the account. This may be displayed by the app.
Returns
undefined
| `data:image/svg+xml;base64,${string}`
| `data:image/webp;base64,${string}`
| `data:image/png;base64,${string}`
| `data:image/gif;base64,${string}`
Implementation of
WalletAccount.icon
label
Get Signature
get label():
undefined
|string
Defined in: web3/web3-solana/src/wallet-standard/account.ts:47
Optional user-friendly descriptive label or name for the account. This may be displayed by the app.
Returns
undefined
| string
Implementation of
WalletAccount.label
publicKey
Get Signature
get publicKey():
Uint8Array
<ArrayBuffer
>
Defined in: web3/web3-solana/src/wallet-standard/account.ts:35
Public key of the account, corresponding with a secret key to use.
Returns
Uint8Array
<ArrayBuffer
>
Implementation of
WalletAccount.publicKey
Methods
toJSON()
toJSON():
any
Defined in: web3/web3-solana/src/wallet-standard/account.ts:73
Returns
any
fromJSON()
static
fromJSON(json
):ExodusSolanaWalletAccount
Defined in: web3/web3-solana/src/wallet-standard/account.ts:86
Parameters
Parameter | Type |
---|---|
json | { address : string ; icon? : `data:image/svg+xml;base64,${string}` | `data:image/webp;base64,${string}` | `data:image/png;base64,${string}` | `data:image/gif;base64,${string}` ; label? : string ; } |
json.address | string |
json.icon? | `data:image/svg+xml;base64,${string}` | `data:image/webp;base64,${string}` | `data:image/png;base64,${string}` | `data:image/gif;base64,${string}` |
json.label? | string |
Returns
ExodusSolanaWalletAccount