Skip to main content
This page is generated from the @gol/sdk type declarations by pnpm sdk:reference. It reads the built dist/index.d.ts and dist/server.d.ts of the sdk repository, so it describes a released interface rather than prose written by hand. Do not edit it directly. If the version below differs from the one in current availability, reconcile the two before relying on either.

How to read this page

Signatures are the declarations the package exports, not a rewritten summary. Address, Hex, and PublicClient are viem types that the package does not re-export, so install viem alongside the SDK. A client parameter is narrowed to the read methods the SDK calls, which a viem PublicClient satisfies.
  • Classes list the constructor options and every method a caller can use, including inherited methods.
  • Functions are module-level helpers.
  • Values are exported constants.
  • Types are interfaces and aliases. Ones generated from the platform contract are listed with the API operation that defines their shape.

@gol/sdk

Browser-safe policy encoding, owner wallet payloads, owner operations, and verification. Safe to import from a web page, a mobile bundle, or a server.

Classes

GolApiError

Extends Error.

GolTransportError

Extends Error.

Functions

Values

API request and response types

These aliases are generated from the platform OpenAPI contract, so their shape is exactly the one in the API reference. Operation is the OpenAPI operationId that defines the type.

Types

AccountFamily

AgentSigner

ApiKeyScope

CombinedGasApproval

DeveloperRelayerTransaction

Eip7702AuthorizationSigner

GasActionAuthorizationMessage

GasExecutionSummary

GasMandateTerms

GasPolicyInput

GolEnvironment

GolOwnerPayload

MandateTermsInput

OwnerAccountCall

OwnerGasPolicy

OwnerOperation

OwnerOperationOptions

OwnerSigner

PackedUserOperation

PreparedChildMandateExpectations

PreparedGasExecutionExpectations

PreparedGasPolicyExpectations

PreparedGasRevocation

RawHashSigner

SafetyActionCode

SafetyActionName

SignatureFormat

SmartAccountFamily

TransferPolicyInput

TypedDataPayload

UserOperationFamily

WalletSigningInput

WalletSigningPayload

@gol/sdk/server

Typed API clients, polling helpers, and webhook verification. Server-only, because these calls carry your API key or developer session token.

Classes

GolApiClient

Extends ProjectResources, an internal base class the package does not export.

GolApiError

Extends Error.

GolManagementClient

Extends ProjectResources, an internal base class the package does not export.

GolTransportError

Extends Error.

GolWebhookVerificationError

new GolWebhookVerificationError(message: string) Extends Error.

Functions

API request and response types

These aliases are generated from the platform OpenAPI contract, so their shape is exactly the one in the API reference. Operation is the OpenAPI operationId that defines the type.

Types

GolApiClientOptions

GolClientOptions

GolManagementClientOptions

GolWebhookEvent

PageOptions

WaitOptions