Phantasma Link
Overview
Defaults and connection details
Initialization
import { PhantasmaLink, ProofOfWork } from "phantasma-sdk-ts";
const link = new PhantasmaLink("My Dapp", true);
link.login(
(success) => {
if (success) {
console.log("Connected address:", link.account?.address);
}
},
(error) => {
console.error("Login failed:", error);
},
4, // protocol version
"phantasma", // platform
"poltergeist" // providerHint: "poltergeist" or "ecto"
);Account data
Key Methods
Formats and limits
Sending a Transaction
Signing Data
Signing a Transaction Signature
Signing and Broadcasting a Carbon Transaction
Proof of Work
Last updated