# Filecoin Wallet API

Welcome to the developer reference documentation for Filecoin Wallet. This documentation is mainly for the Filecoin Wallet chrome extension. DAppLink API into the website the user visits, the API allows the website to request the user's Filecoin account, read data from the user's connected blockchain, and suggest messages and transactions for the user to sign.

# Method

Extension version number

Returns true to indicate that the API has accessed the current site, or if access fails, the page must be reloaded to re-establish the connection.

Example:

args :{
  method: string;
  params: object;
}
DAppLink.request({
    // open Filecoin Wallet
    method: "openFilecoinWallet",
    params:{
        // width
        width:window.outerWidth,
        // origin
        origin:'https://filscan.io'
    }
})

tag Event identifier // tag:filecoinWalletAddress. Listen to the connection address data return data

You can listen for events like the following,

tag: string;
callback:Funtion;
AppLink.onMessage(tag,(data)=>{
    console.log(data)
})