Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 432 Bytes

File metadata and controls

14 lines (10 loc) · 432 Bytes

selectedAddress

window.phantom.ethereum.selectedAddress

The address of the wallet that is currently connected to the dapp. This value will update upon accountsChanged and connect events.

Returns a hexadecimal string.

const address = window.phantom.ethereum.selectedAddress;
console.log(address);
// "0xDAFEA492D9c6733ae3d56b7Ed1ADB60692c98Bc5"