WalletAdapterFilsnap
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:28
Filsnap wallet implementation
Implements
Section titled “Implements”Extends
Section titled “Extends”TypedEventTarget
Accessors
Section titled “Accessors”connected
Section titled “connected”Get Signature
Section titled “Get Signature”get connected():
boolean
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:148
Whether the wallet is currently connected
Returns
Section titled “Returns”boolean
connecting
Section titled “connecting”Get Signature
Section titled “Get Signature”get connecting():
boolean
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:144
Whether the wallet is in the process of connecting
Returns
Section titled “Returns”boolean
support
Section titled “support”Get Signature
Section titled “Get Signature”get support():
"NotChecked"
|"Detected"
|"NotDetected"
|"NotSupported"
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:152
Wallet support status (NotChecked, Detected, NotDetected, NotSupported)
Returns
Section titled “Returns”"NotChecked"
| "Detected"
| "NotDetected"
| "NotSupported"
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WalletAdapterFilsnap(
config
):WalletAdapterFilsnap
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:64
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
config | WalletConfig & object |
Returns
Section titled “Returns”WalletAdapterFilsnap
Overrides
Section titled “Overrides”TypedEventTarget.constructor
Methods
Section titled “Methods”changeNetwork()
Section titled “changeNetwork()”changeNetwork(
network
):Promise
<{account
: {address
:IAddress
;path
:string
;privateKey?
:Uint8Array
<ArrayBufferLike
>;publicKey
:Uint8Array
;type
:"SECP256K1"
|"BLS"
; };network
:Network
; }>
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:159
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
network | Network |
Returns
Section titled “Returns”Promise
<{ account
: { address
: IAddress
; path
: string
; privateKey?
: Uint8Array
<ArrayBufferLike
>; publicKey
: Uint8Array
; type
: "SECP256K1"
| "BLS"
; }; network
: Network
; }>
checkSupport()
Section titled “checkSupport()”checkSupport():
Promise
<void
>
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:264
Check if this wallet adapter is supported in the current environment
Returns
Section titled “Returns”Promise
<void
>
connect()
Section titled “connect()”connect(
params?
):Promise
<{account
: {address
:IAddress
;path
:string
;privateKey?
:Uint8Array
<ArrayBufferLike
>;publicKey
:Uint8Array
;type
:"SECP256K1"
|"BLS"
; };network
:Network
; }>
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:86
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
params? | { network? : Network ; } |
params.network? | Network |
Returns
Section titled “Returns”Promise
<{ account
: { address
: IAddress
; path
: string
; privateKey?
: Uint8Array
<ArrayBufferLike
>; publicKey
: Uint8Array
; type
: "SECP256K1"
| "BLS"
; }; network
: Network
; }>
deriveAccount()
Section titled “deriveAccount()”deriveAccount(
_index
):Promise
<{address
:IAddress
;path
:string
;privateKey?
:Uint8Array
<ArrayBufferLike
>;publicKey
:Uint8Array
;type
:"SECP256K1"
|"BLS"
; }>
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:199
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
_index | number |
Returns
Section titled “Returns”Promise
<{ address
: IAddress
; path
: string
; privateKey?
: Uint8Array
<ArrayBufferLike
>; publicKey
: Uint8Array
; type
: "SECP256K1"
| "BLS"
; }>
disconnect()
Section titled “disconnect()”disconnect():
Promise
<void
>
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:276
Disconnect from the wallet
Returns
Section titled “Returns”Promise
<void
>
sign()
Section titled “sign()”Defined in: packages/iso-filecoin-wallets/src/filsnap.js:228
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
data | Uint8Array <ArrayBufferLike > | Data to sign |
Returns
Section titled “Returns”signMessage()
Section titled “signMessage()”Defined in: packages/iso-filecoin-wallets/src/filsnap.js:246
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
message | { from : string ; gasFeeCap : string ; gasLimit : number ; gasPremium : string ; method : number ; nonce : number ; params : string ; to : string ; value : string ; version : 0 ; } | Filecoin message to sign |
message.from | string | - |
message.gasFeeCap | string | - |
message.gasLimit | number | - |
message.gasPremium | string | - |
message.method | number | - |
message.nonce | number | - |
message.params | string | - |
message.to | string | - |
message.value | string | - |
message.version | 0 | - |
Returns
Section titled “Returns”
static
is(value
):value is WalletAdapterFilsnap
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:79
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
value | WalletAdapter |
Returns
Section titled “Returns”value is WalletAdapterFilsnap
Properties
Section titled “Properties”[symbol]
Section titled “[symbol]”[symbol]:
boolean
=true
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:30
account
Section titled “account”account:
undefined
| {address
:IAddress
;path
:string
;privateKey?
:Uint8Array
<ArrayBufferLike
>;publicKey
:Uint8Array
;type
:"SECP256K1"
|"BLS"
; } =undefined
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:37
Type declaration
Section titled “Type declaration”undefined
{ address
: IAddress
; path
: string
; privateKey?
: Uint8Array
<ArrayBufferLike
>; publicKey
: Uint8Array
; type
: "SECP256K1"
| "BLS"
; }
address
Section titled “address”address:
IAddress
path:
string
Derivation path - only for HD wallets
privateKey?
Section titled “privateKey?”
optional
privateKey:Uint8Array
<ArrayBufferLike
>
Private key - only for RAW and HD wallets
publicKey
Section titled “publicKey”publicKey:
Uint8Array
type:
"SECP256K1"
|"BLS"
filsnap
Section titled “filsnap”filsnap:
undefined
|FilsnapAdapter
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:43
id:
string
='filsnap'
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:32
Wallet adapter identifier (e.g. ‘filsnap’, ‘ledger’, ‘hd’, ‘raw’)
name:
string
='Filsnap'
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:33
Human readable wallet name
network
Section titled “network”network:
Network
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:70
signatureType
Section titled “signatureType”signatureType:
"SECP256K1"
|"BLS"
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:71
syncWithProvider
Section titled “syncWithProvider”syncWithProvider:
boolean
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:72
uid:
string
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:31
Unique identifier for this wallet instance
url:
string
='https://snaps.metamask.io/snap/npm/filsnap/'
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:34
Wallet homepage URL
version
Section titled “version”version:
undefined
|string
Defined in: packages/iso-filecoin-wallets/src/filsnap.js:69