Go SDK Signing Guide

The official Go SDK focuses on constructing request payloads and generating SoDEX-compatible signatures.

GitHub: sodex-go-sdk-publicarrow-up-right

What the SDK Covers

  • EIP-712 domain construction

  • payloadHash generation

  • signature-type prefixes

  • spot and perps signer helpers

What the SDK Does Not Cover

  • HTTP clients

  • WebSocket clients

  • retries and reconnects

  • rate-limit scheduling

  • key storage

Core Entry Points

  • common/signer/evm_signer.go

  • spot/signer/signer.go

  • perps/signer/signer.go

Use the spot signer for the spot domain and the perps signer for the futures domain.

Example

Notes

  • The returned signature already includes the SoDEX signature-type prefix.

  • All nonces must still satisfy the gateway nonce rules.

  • The SDK marshals the request payload before hashing, so your custom clients should avoid mutating field order or names when reimplementing signing outside the SDK.

REST API v1chevron-right

Last updated