On this pageEnvironment URLsProduction NetworksSDK Configuration ExamplesREST API Base PathsDemo Shop

Environments ​

HashNut provides separate environments for testing and production use.

Environment URLs ​

EnvironmentBase URLDescription
Productionhttps://defi.hashnut.ioLive environment with real funds
Testnethttps://testnet.hashnut.ioTesting environment with testnet tokens

TIP

Always develop and test against the Testnet environment first. Switch to Production only after thorough testing.

Production Networks ​

Chain CodeNetwork Name
ETHEthereum Mainnet
BSCBNB Smart Chain
POLYGONPolygon (Matic)
TRONTron Mainnet

SDK Configuration Examples ​

go
import hashnut "github.com/hashnut/hashnut-go-sdk"

client := hashnut.NewClient(
	"your-access-key-id",
	"your-secret-key",
)
// Default base URL: https://api.hashnut.io
go
import hashnut "github.com/hashnut/hashnut-go-sdk"

client := hashnut.NewClient(
	"your-access-key-id",
	"your-secret-key",
	hashnut.WithTestnet(),
)
// Base URL: https://testnet.hashnut.io
go
import hashnut "github.com/hashnut/hashnut-go-sdk"

client := hashnut.NewClient(
	"your-access-key-id",
	"your-secret-key",
	hashnut.WithBaseURL("https://your-custom-endpoint.com"),
)

REST API Base Paths ​

All API endpoints are prefixed with the version path:

{BASE_URL}/v4.0.0/...

For example:

EnvironmentFull Create Order URL
Productionhttps://api.hashnut.io/v4.0.0/pay/orders/api
Testnethttps://testnet.hashnut.io/v4.0.0/pay/orders/api

Demo Shop ​

A reference implementation is available at:

ComponentURL
Demo Shop (frontend)https://demo.hashnut.io

The demo shop demonstrates the full payment flow including order creation, payment page, webhook handling, and order status display.