Pull mirror of the official PulseChain Go-Pulse execution client.
  • Go 83.1%
  • C 12%
  • JavaScript 2.8%
  • Assembly 0.4%
  • Sage 0.3%
  • Other 1.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Bret 60db0c8ad7 Merge branch 'ci/rootless-dind' into 'master'
ci: use the pinned rootless dind on the self-managed runners

See merge request pulsechaincom/go-pulse!55
2026-10-21 04:22:54 +00:00
.gitea/workflows .gitea: fix typo in windows workflow 2025-07-04 13:45:29 +02:00
.github .github/workflows: naive PR format checker (#32480) 2025-08-25 11:02:33 +02:00
accounts accounts/abi: fix panic when check event with log has empty or nil topics (#32503) 2025-08-27 20:36:45 +08:00
beacon all: fix problematic function name in comment (#32513) 2025-08-29 08:54:23 +08:00
build build: add support for ubuntu 25.04 (#31666) 2025-08-26 09:29:29 +02:00
cmd Add network config for Testnet-V4 2025-09-29 20:27:38 -05:00
common all: improve ETA calculation across all progress indicators (#32521) 2025-09-01 13:47:02 +08:00
consensus Switch sacrifice credits based on chainID 2025-09-29 20:27:38 -05:00
console all: remove personal RPC namespace (#30704) 2024-10-31 19:53:35 +01:00
core Add network config for Testnet-V4 2025-09-29 20:27:38 -05:00
crypto all: fix problematic function name in comment (#32513) 2025-08-29 08:54:23 +08:00
docs docs: fix typo (#30740) 2024-11-11 12:14:18 +01:00
eth Add network config for Testnet-V4 2025-09-29 20:27:38 -05:00
ethclient Add padding to gas estimations 2025-09-29 20:27:38 -05:00
ethdb ethdb/leveldb: check iterator error in Database.DeleteRange (#32384) 2025-08-11 14:32:27 +08:00
ethstats core: reduce load on txindexer from API (#31752) 2025-05-05 10:07:55 +08:00
event event: fix typo (#29749) 2024-05-10 19:44:07 +02:00
graphql Add padding to gas estimations 2025-09-29 20:27:38 -05:00
internal Prepare v3.3.0 release 2025-09-30 15:21:25 -05:00
log log: fix SetDefault for custom loggers (#31368) 2025-03-14 16:56:53 +01:00
metrics metrics: add tinygo build flag for CPU time (#32454) 2025-08-18 14:15:48 +08:00
miner core, internal, miner, signer: convert legacy sidecar in Osaka fork (#32347) 2025-08-27 11:03:29 -06:00
node node: fix problematic function name in comment (#32510) 2025-08-28 21:15:20 +08:00
p2p all: fix problematic function name in comment (#32513) 2025-08-29 08:54:23 +08:00
params Update PulseChain bootnodes 2025-09-29 20:27:39 -05:00
pulse Switch sacrifice credits based on chainID 2025-09-29 20:27:38 -05:00
rlp rlp: refactor to use maths.ReadBits (#32432) 2025-08-21 09:37:08 +08:00
rpc rpc: refactor read limit test (#32494) 2025-08-26 23:43:51 +02:00
signer core, internal, miner, signer: convert legacy sidecar in Osaka fork (#32347) 2025-08-27 11:03:29 -06:00
tests all: replace fmt.Errorf with errors.New (#32286) 2025-07-28 10:13:18 +02:00
trie trie/bintrie: add eip7864 binary trees and run its tests (#32365) 2025-09-01 21:06:51 +08:00
triedb all: improve ETA calculation across all progress indicators (#32521) 2025-09-01 13:47:02 +08:00
version Prepare v3.3.0 release 2025-09-30 15:21:25 -05:00
.dockerignore cmd, internal/build, docker: advertise commit date in unstable build versions (#19522) 2019-05-08 16:44:28 +03:00
.gitattributes .gitattributes: enable solidity highlighting on github (#16425) 2018-04-03 15:21:24 +02:00
.gitignore .gitignore: ignore binaries (#31531) 2025-03-31 09:49:19 +02:00
.gitlab-ci.yml ci: use the pinned rootless dind on the self-managed runners 2026-10-20 21:13:19 -07:00
.gitmodules tests: external evm benchmarks (#24050) 2022-01-28 08:47:19 +01:00
.golangci.yml build: upgrade to golangci-lint v2 (#31530) 2025-04-03 15:18:35 +02:00
.mailmap AUTHORS, .mailmap: update name and email attribution (#31624) 2025-05-15 21:55:38 +02:00
appveyor.yml build: simplify go mod tidy check (#31266) 2025-02-27 15:52:00 +01:00
AUTHORS AUTHORS, .mailmap: update name and email attribution (#31624) 2025-05-15 21:55:38 +02:00
circle.yml circleci: enable docker based hive testing 2016-07-15 16:07:34 +03:00
COPYING COYPING: restore the full text text of GPL (#21568) 2020-09-15 08:27:17 +02:00
COPYING.LESSER all: update license information 2015-07-07 14:12:44 +02:00
Dockerfile build: upgrade -dlgo version to Go 1.24.0 (#31159) 2025-02-19 11:21:22 +01:00
Dockerfile.alltools build: upgrade -dlgo version to Go 1.24.0 (#31159) 2025-02-19 11:21:22 +01:00
go.mod eth: stabilize tx relay peer selection (#31714) 2025-08-28 16:05:54 +02:00
go.sum eth: stabilize tx relay peer selection (#31714) 2025-08-28 16:05:54 +02:00
interfaces.go all: incorporate state history indexing status into eth_syncing response (#32099) 2025-06-26 17:20:20 +02:00
Makefile Makefile: add make evm (#32029) 2025-06-13 16:16:49 +02:00
oss-fuzz.sh tests/fuzzers: added bn marshaling fuzzers (#32053) 2025-06-17 23:02:36 +02:00
README.md Add network config for Testnet-V4 2025-09-29 20:27:38 -05:00
SECURITY.md Update readme & security file 2025-09-29 20:27:38 -05:00

Go-Pulse: A PulseChain Execution Client Written in Go

This is the core repository for Go-Pulse, a Golang implementation of the PulseChain execution client, forked from Go-Ethereum to provide native PulseChain support.

This project is forked from Go-Ethereum, the official Golang implementation of the Ethereum protocol. Credit goes to the Go-Ethereum developers for the original development. Go-Pulse extends this foundation with PulseChain-specific features and network support.

PulseChain Features

Go-Pulse extends Go-Ethereum with PulseChain-specific features:

  • Native PulseChain Support: Built-in support for PulseChain mainnet and testnet networks
  • PrimordialPulse Fork: Implements sacrifice credits and deposit contract replacement
  • Ethereum Compatibility: Maintains compatibility with Ethereum networks for cross-chain operations
  • Standard RPC APIs: Uses standard Ethereum JSON-RPC APIs for all network interactions
  • Fork Support: Supports PulseChain's unique fork characteristics and consensus rules

Building the source

For prerequisites and detailed build instructions, please refer to the Go-Ethereum Installation Instructions as Go-Pulse follows the same build process.

Building geth requires both a Go (version 1.23 or later) and a C compiler. You can install them using your favourite package manager. Once the dependencies are installed, run

make geth

or, to build the full suite of utilities:

make all

Executables

The go-pulse project comes with several wrappers/executables found in the cmd directory.

Command Description
geth Our main PulseChain CLI client. It is the entry point into the PulseChain networks (mainnet, testnet, or private net), capable of running as a full node (default), archive node (retaining all historical state) or a light node (retrieving data live). It can be used by other processes as a gateway into the PulseChain networks via JSON RPC endpoints exposed on top of HTTP, WebSocket and/or IPC transports. geth --help and the CLI page for command line options.
clef Stand-alone signing tool, which can be used as a backend signer for geth.
devp2p Utilities to interact with nodes on the networking layer, without running a full blockchain.
abigen Source code generator to convert contract definitions into easy-to-use, compile-time type-safe Go packages. It operates on plain contract ABIs with expanded functionality if the contract bytecode is also available. However, it also accepts Solidity source files, making development much more streamlined. Please see the Go-Ethereum documentation for details.
evm Developer utility version of the EVM (Ethereum Virtual Machine) that is capable of running bytecode snippets within a configurable environment and execution mode. Its purpose is to allow isolated, fine-grained debugging of EVM opcodes (e.g. evm --code 60ff60ff --debug run).
rlpdump Developer utility tool to convert binary RLP (Recursive Length Prefix) dumps (data encoding used by the Ethereum protocol both network as well as consensus wise) to user-friendlier hierarchical representation (e.g. rlpdump --hex CE0183FFFFFFC4C304050583616263).

Running geth

Going through all the possible command line flags is out of scope here (please consult the Go-Ethereum CLI documentation for reference), but we've enumerated a few common parameter combos to get you up to speed quickly on how you can run your own geth instance on PulseChain networks.

Hardware Requirements

PulseChain Mainnet:

Minimum:

  • CPU with 4+ cores
  • 8GB RAM
  • 1TB free storage space to sync PulseChain mainnet
  • 8 MBit/sec download Internet service

Recommended:

  • Fast CPU with 8+ cores
  • 16GB+ RAM
  • High-performance SSD with at least 1TB of free space
  • 25+ MBit/sec download Internet service

Full node on PulseChain Mainnet

The most common scenario is connecting to the PulseChain mainnet to interact with the network: create accounts; transfer PLS; deploy and interact with contracts. To connect to PulseChain mainnet:

$ geth --pulsechain console

This command will:

  • Start geth in snap sync mode (default, can be changed with the --syncmode flag), causing it to download more data in exchange for avoiding processing the entire history of the PulseChain network, which is very CPU intensive.
  • Start the built-in interactive JavaScript console, (via the trailing console subcommand) through which you can interact using web3 methods (note: the web3 version bundled within geth may not be up to date with the latest documentation), as well as geth's own management APIs. This tool is optional and if you leave it out you can always attach it to an already running geth instance with geth attach.

Full node on PulseChain Testnet V4

For development and testing, you can connect to the PulseChain Testnet V4:

$ geth --pulsechain-testnet-v4 console

The console subcommand works the same way as on mainnet and is equally useful for testing.

Specifying the --pulsechain-testnet-v4 flag will configure your geth instance for the testnet:

  • Connect to the PulseChain Testnet V4, which uses different P2P bootnodes, different network ID and a different fork block
  • Use a separate data directory for testnet data to keep it isolated from mainnet.

Note: Always use separate accounts for testnet and mainnet. Go-Pulse will correctly separate the two networks and will not make accounts available between them.

Full node on Ethereum networks (for compatibility)

Go-Pulse also supports connecting to Ethereum networks for compatibility:

Ethereum Mainnet:

$ geth --ethereum console

Holesky Testnet:

$ geth --holesky console

Configuration

As an alternative to passing the numerous flags to the geth binary, you can also pass a configuration file via:

$ geth --config /path/to/your_config.toml

To get an idea of how the file should look like you can use the dumpconfig subcommand to export your existing configuration:

$ geth --your-favorite-flags dumpconfig

Docker quick start

One of the quickest ways to get Go-Pulse up and running on your machine is by using Docker:

PulseChain Mainnet:

docker run -d --name pulsechain-mainnet-node -v /path/to/pulsechain/data:/root \
           -p 8545:8545 -p 30303:30303 \
           registry.gitlab.com/pulsechaincom/go-pulse --pulsechain

PulseChain Testnet V4:

docker run -d --name pulsechain-testnet-node -v /path/to/pulsechain-testnet/data:/root \
           -p 8545:8545 -p 30303:30303 \
           registry.gitlab.com/pulsechaincom/go-pulse --pulsechain-testnet-v4

This will start geth in snap-sync mode and create a persistent volume for saving your blockchain data as well as map the default ports.

Do not forget --http.addr 0.0.0.0, if you want to access RPC from other containers and/or hosts. By default, geth binds to the local interface and RPC endpoints are not accessible from the outside.

Programmatically interfacing geth nodes

As a developer, sooner rather than later you'll want to start interacting with geth and the PulseChain network via your own programs and not manually through the console. To aid this, geth has built-in support for a JSON-RPC based APIs (standard APIs and geth specific APIs). These can be exposed via HTTP, WebSockets and IPC (UNIX sockets on UNIX based platforms, and named pipes on Windows).

The IPC interface is enabled by default and exposes all the APIs supported by geth, whereas the HTTP and WS interfaces need to manually be enabled and only expose a subset of APIs due to security reasons. These can be turned on/off and configured as you'd expect.

HTTP based JSON-RPC API options:

  • --http Enable the HTTP-RPC server
  • --http.addr HTTP-RPC server listening interface (default: localhost)
  • --http.port HTTP-RPC server listening port (default: 8545)
  • --http.api APIs offered over the HTTP-RPC interface (default: eth,net,web3)
  • --http.corsdomain Comma separated list of domains from which to accept cross-origin requests (browser enforced)
  • --ws Enable the WS-RPC server
  • --ws.addr WS-RPC server listening interface (default: localhost)
  • --ws.port WS-RPC server listening port (default: 8546)
  • --ws.api APIs offered over the WS-RPC interface (default: eth,net,web3)
  • --ws.origins Origins from which to accept WebSocket requests
  • --ipcdisable Disable the IPC-RPC server
  • --ipcpath Filename for IPC socket/pipe within the datadir (explicit paths escape it)

You'll need to use your own programming environments' capabilities (libraries, tools, etc) to connect via HTTP, WS or IPC to a geth node configured with the above flags and you'll need to speak JSON-RPC on all transports. You can reuse the same connection for multiple requests!

Note: Please understand the security implications of opening up an HTTP/WS based transport before doing so! Hackers on the internet are actively trying to subvert PulseChain nodes with exposed APIs! Further, all browser tabs can access locally running web servers, so malicious web pages could try to subvert locally available APIs!

Operating a private network

Maintaining your own private network is more involved as a lot of configurations taken for granted in the official networks need to be manually set up.

Unfortunately since the Merge it is no longer possible to easily set up a network of geth nodes without also setting up a corresponding beacon chain.

There are three different solutions depending on your use case:

  • If you are looking for a simple way to test smart contracts from go in your CI, you can use the Simulated Backend.
  • If you want a convenient single node environment for testing, you can use our Dev Mode.
  • If you are looking for a multiple node test network, you can set one up quite easily with Kurtosis.

License

The go-pulse library (i.e. all code outside of the cmd directory), like the upstream go-ethereum, is licensed under the GNU Lesser General Public License v3.0, also included in our repository in the COPYING.LESSER file.

The go-pulse binaries (i.e. all code inside of the cmd directory), like the upstream go-ethereum, are licensed under the GNU General Public License v3.0, also included in our repository in the COPYING file.