☁️PhantasmaAPI
Here's how to setup a simple connection to the Phantasma Blockchain API
The first thing to do is to create an instance of the PhantasmaAPI.
It will receive as parameters, the RPC URL, the Peers URL or undefined, and the Nexus Name
Testnet Configurations
RPC URL -> https://testnet.phantasma.io/rpc
Peers URL -> undefined
Nexus Name -> testnet
It should look like this
Mainnet Configurations
RPC URL -> It can used anyone of this
https://pharpc1.phantasma.io/rpc
https://pharpc2.phantasma.io/rpc
https://pharpc3.phantasma.io/rpc
https://pharpc4.phantasma.io/rpc
Peers URL -> https://getpeers.phantasma.io/mainnet-getpeers.json
Nexus Name -> mainnet
It should look like this
Last updated