Versions in this module Expand all Collapse all v0 v0.63.3 Dec 17, 2025 Changes in this version + const DefaultAPIServiceURL + const TrailsPathPrefix + const WebrpcHeader + const WebrpcHeaderValue + var CCTPTransferStatus_name = map[uint8]string + var CCTPTransferStatus_value = map[string]uint8 + var ErrAborted = WebRPCError + var ErrAccessKeyMismatch = WebRPCError + var ErrAccessKeyNotFound = WebRPCError + var ErrAtLeastOneKey = WebRPCError + var ErrClientOutdated = WebRPCError + var ErrGeoblocked = WebRPCError + var ErrIntentStatus = WebRPCError + var ErrIntentsDisabled = WebRPCError + var ErrIntentsSkipped = WebRPCError + var ErrInvalidArgument = WebRPCError + var ErrInvalidOrigin = WebRPCError + var ErrInvalidService = WebRPCError + var ErrMaxAccessKeys = WebRPCError + var ErrMethodNotFound = WebRPCError + var ErrNoDefaultKey = WebRPCError + var ErrNotFound = WebRPCError + var ErrPermissionDenied = WebRPCError + var ErrProjectNotFound = WebRPCError + var ErrQueryFailed = WebRPCError + var ErrQuotaExceeded = WebRPCError + var ErrQuotaRateLimit = WebRPCError + var ErrQuoteExpired = WebRPCError + var ErrRateLimited = WebRPCError + var ErrRequestConflict = WebRPCError + var ErrSessionExpired = WebRPCError + var ErrTimeout = WebRPCError + var ErrUnauthorized = WebRPCError + var ErrUnauthorizedUser = WebRPCError + var ErrUnavailable = WebRPCError + var ErrUnexpected = WebRPCError + var ErrUnsupportedNetwork = WebRPCError + var ErrWebrpcBadMethod = WebRPCError + var ErrWebrpcBadRequest = WebRPCError + var ErrWebrpcBadResponse = WebRPCError + var ErrWebrpcBadRoute = WebRPCError + var ErrWebrpcClientAborted = WebRPCError + var ErrWebrpcEndpoint = WebRPCError + var ErrWebrpcInternalError = WebRPCError + var ErrWebrpcRequestFailed = WebRPCError + var ErrWebrpcServerPanic = WebRPCError + var ErrWebrpcStreamFinished = WebRPCError + var ErrWebrpcStreamLost = WebRPCError + var HTTPClientRequestHeadersCtxKey = &contextKey + var IntentStatus_name = map[uint8]string + var IntentStatus_value = map[string]uint8 + var SortOrder_name = map[uint32]string + var SortOrder_value = map[string]uint32 + var TransactionContext_name = map[uint8]string + var TransactionContext_value = map[string]uint8 + var TransactionStatus_name = map[uint8]string + var TransactionStatus_value = map[string]uint8 + var TransactionType_name = map[uint8]string + var TransactionType_value = map[string]uint8 + func HTTPRequestHeaders(ctx context.Context) (http.Header, bool) + func PtrTo[T any](v T) *T + func WebRPCSchemaHash() string + func WebRPCSchemaVersion() string + func WebRPCVersion() string + func WithHTTPRequestHeaders(ctx context.Context, h http.Header) (context.Context, error) + type AbortIntentRequest struct + AbortTransactionHash prototyp.Hash + ChainID uint64 + IntentID prototyp.Hash + type AbortIntentResponse struct + IntentID prototyp.Hash + Status IntentStatus + type BigInt big.Int + func NewBigInt(v int64) BigInt + func (b *BigInt) AsInt() *big.Int + func (b *BigInt) Scan(src interface{}) error + func (b *BigInt) UnmarshalBinary(buff []byte) error + func (b *BigInt) UnmarshalJSON(text []byte) error + func (b *BigInt) UnmarshalText(text []byte) error + func (b BigInt) MarshalBinary() ([]byte, error) + func (b BigInt) MarshalJSON() ([]byte, error) + func (b BigInt) MarshalText() ([]byte, error) + func (b BigInt) String() string + func (b BigInt) Value() (driver.Value, error) + type CCTPTransfer struct + Attestation prototyp.Hash + CreatedAt time.Time + DestinationChainID uint64 + DestinationTxnID uint64 + ID uint64 + IntentID prototyp.Hash + Message prototyp.Hash + OriginChainID uint64 + OriginTxnHash prototyp.Hash + OriginTxnID uint64 + Status CCTPTransferStatus + StatusReason *string + UpdatedAt time.Time + type CCTPTransferStatus uint8 + const CCTPTransferStatus_COMPLETE + const CCTPTransferStatus_FAILED + const CCTPTransferStatus_FETCHING + const CCTPTransferStatus_ON_HOLD + const CCTPTransferStatus_PENDING + const CCTPTransferStatus_UNKNOWN + func (x *CCTPTransferStatus) Is(values ...CCTPTransferStatus) bool + func (x *CCTPTransferStatus) UnmarshalText(b []byte) error + func (x CCTPTransferStatus) MarshalText() ([]byte, error) + func (x CCTPTransferStatus) String() string + type ChainGasUsageStatus string + const ChainGasUsageStatus_BUSY + const ChainGasUsageStatus_NORMAL + const ChainGasUsageStatus_VERY_BUSY + func (x *ChainGasUsageStatus) Is(values ...ChainGasUsageStatus) bool + func (x *ChainGasUsageStatus) UnmarshalText(b []byte) error + func (x ChainGasUsageStatus) MarshalText() ([]byte, error) + type ChainInfo struct + BlockExplorerURL string + ID uint64 + IsTestnet bool + LogoURI string + Name string + SupportsBridging bool + TokenDecimals uint8 + TokenName string + TokenSymbol string + type ChainMetadata struct + ChainID uint64 + LogoURI string + Name string + Testnet *bool + type CommitIntentRequest struct + Intent *Intent + type CommitIntentResponse struct + IntentID prototyp.Hash + type DepositIntentEntry struct + Deadline uint64 + FeeAmount prototyp.BigInt + FeeCollector prototyp.Hash + FeeToken prototyp.Hash + IntentSignature prototyp.Hash + PermitAmount prototyp.BigInt + PermitDeadline *uint64 + PermitSignature *prototyp.Hash + UserNonce uint64 + type DepositSignature struct + Deadline uint64 + IntentSignature prototyp.Hash + PermitAmount prototyp.BigInt + PermitDeadline *uint64 + PermitSignature *prototyp.Hash + SelectedGasFeeOption *FeeOption + UserNonce uint64 + type DepositTransaction struct + Amount prototyp.BigInt + Decimals *uint8 + ToAddress prototyp.Hash + TokenAddress prototyp.Hash + type ExecuteIntentRequest struct + DepositSignature *DepositSignature + DepositTransactionHash prototyp.Hash + IntentID prototyp.Hash + type ExecuteIntentResponse struct + IntentID prototyp.Hash + IntentStatus IntentStatus + type FeeOption struct + Amount prototyp.BigInt + AmountUSD float64 + FeeCollectorAddress prototyp.Hash + Is2612 bool + TokenAddress prototyp.Hash + TokenDecimals uint8 + TokenSymbol string + type GasEstimate struct + GasPrice string + NativeCost string + NativeCostUSD float64 + TotalGas uint64 + type GasFeeOptions struct + ExpiresAt time.Time + FeeCollectorAddress prototyp.Hash + FeeOptions []*FeeOption + GasEstimate *GasEstimate + type GetChainsRequest struct + RouteProvider *string + type GetChainsResponse struct + Chains []*ChainInfo + type GetExactInputRoutesRequest struct + DestinationChainID *uint64 + DestinationTokenAddress prototyp.Hash + OriginChainID uint64 + OriginTokenAddress prototyp.Hash + type GetExactInputRoutesResponse struct + Tokens []*TokenInfo + type GetExactOutputRoutesRequest struct + DestinationChainID uint64 + DestinationTokenAddress prototyp.Hash + OriginChainID *uint64 + OriginTokenAddress prototyp.Hash + OwnerAddress prototyp.Hash + type GetExactOutputRoutesResponse struct + Tokens []*TokenInfo + type GetIntentHistoryRequest struct + ByOwnerAddress prototyp.Hash + ByProjectID uint64 + Page *Page + type GetIntentHistoryResponse struct + Intents []*IntentHistory + NextPage *Page + type GetIntentReceiptRequest struct + IntentID prototyp.Hash + type GetIntentReceiptResponse struct + IntentReceipt *IntentReceipt + type GetIntentRequest struct + IntentID prototyp.Hash + type GetIntentResponse struct + Intent *Intent + type GetIntentTransactionHistoryRequest struct + ByOwnerAddress prototyp.Hash + ByProjectID uint64 + Page *Page + type GetIntentTransactionHistoryResponse struct + Intents []*IntentSummary + NextPage *Page + type GetTokenListRequest struct + ChainIDs []uint64 + ExcludeTokens []prototyp.Hash + IncludeAllListed bool + IncludeExternal bool + Limit int32 + SearchQuery string + TokenAddress prototyp.Hash + type GetTokenListResponse struct + Tokens []*TokenInfo + type GetTokenPricesRequest struct + Tokens []*Token + type GetTokenPricesResponse struct + TokenPrices []*TokenPrice + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type Intent struct + CreatedAt *time.Time + DepositTransaction *DepositTransaction + DestinationCalls *IntentCalls + DestinationChainID uint64 + DestinationIntentAddress *prototyp.Hash + DestinationMetaTxn *MetaTxn + DestinationPrecondition *TransactionPrecondition + ExpiresAt time.Time + Fees *IntentFees + ID uint64 + IntentID prototyp.Hash + OriginCalls *IntentCalls + OriginChainID uint64 + OriginIntentAddress prototyp.Hash + OriginMetaTxn *MetaTxn + OriginPrecondition *TransactionPrecondition + OwnerAddress prototyp.Hash + ProjectID uint64 + Quote *IntentProviderQuote + QuoteRequest *QuoteIntentRequest + Salt prototyp.BigInt + Status IntentStatus + TrailsContracts *TrailsContracts + TrailsVersion string + UpdatedAt *time.Time + type IntentCalls struct + Calls []*TransactionCall + ChainID uint64 + Nonce prototyp.BigInt + Space prototyp.BigInt + type IntentFees struct + DestinationGas *IntentTransactionGasFee + FeeTokenAddress prototyp.Hash + FeeTokenTotal prototyp.BigInt + OriginGas *IntentTransactionGasFee + Provider *IntentProviderFees + TotalFeeAmount prototyp.BigInt + TotalFeeUSD float64 + type IntentHistory struct + CreatedAt *time.Time + ExpiresAt time.Time + IntentID prototyp.Hash + Receipt *IntentReceipt + Status IntentStatus + UpdatedAt *time.Time + type IntentProviderFees struct + QuoteProvider string + QuoteProviderFee prototyp.BigInt + QuoteProviderFeeUSD float64 + TotalFeeAmount prototyp.BigInt + TotalFeeUSD float64 + TrailsFee prototyp.BigInt + TrailsFeeUSD float64 + type IntentProviderQuote struct + FromAmount prototyp.BigInt + FromAmountMin prototyp.BigInt + FromAmountMinUSD float64 + FromAmountUSD float64 + MaxSlippage float64 + PriceImpact float64 + PriceImpactUSD float64 + RouteProviders []RouteProvider + RouteProvidersFeeUSD []float64 + RouteProvidersRequestIDs []string + ToAmount prototyp.BigInt + ToAmountMin prototyp.BigInt + ToAmountMinUSD float64 + ToAmountUSD float64 + type IntentReceipt struct + CreatedAt *time.Time + DepositTransaction *IntentTransaction + DepositTransactionID uint64 + DestinationChainID uint64 + DestinationTransaction *IntentTransaction + DestinationTransactionID *uint64 + ID uint64 + IntentID prototyp.Hash + OriginChainID uint64 + OriginTransaction *IntentTransaction + OriginTransactionID uint64 + OwnerAddress prototyp.Hash + ProjectID uint64 + Status IntentStatus + Summary *IntentReceiptSummary + UpdatedAt *time.Time + type IntentReceiptSummary struct + CreatedAt time.Time + DestinationChainID uint64 + DestinationHasCallData bool + DestinationHasCallValue bool + DestinationIntentAddress prototyp.Hash + DestinationToAddress *prototyp.Hash + DestinationTokenAddress *prototyp.Hash + DestinationTokenAmount *prototyp.BigInt + DestinationTokenMetadata *TokenMetadata + ExpiresAt time.Time + FinishedAt *time.Time + IntentID prototyp.Hash + Memo *string + OriginChainID uint64 + OriginIntentAddress prototyp.Hash + OriginTokenAddress prototyp.Hash + OriginTokenAmount prototyp.BigInt + OriginTokenMetadata *TokenMetadata + OwnerAddress prototyp.Hash + RouteProviders []RouteProvider + StartedAt *time.Time + Status IntentStatus + TradeType TradeType + type IntentStatus uint8 + const IntentStatus_ABORTED + const IntentStatus_COMMITTED + const IntentStatus_EXECUTING + const IntentStatus_FAILED + const IntentStatus_QUOTED + const IntentStatus_SUCCEEDED + func (x *IntentStatus) Is(values ...IntentStatus) bool + func (x *IntentStatus) UnmarshalText(b []byte) error + func (x IntentStatus) MarshalText() ([]byte, error) + func (x IntentStatus) String() string + type IntentSummary struct + CreatedAt time.Time + DepositTransactionHash *prototyp.Hash + DepositTransactionStatus TransactionStatus + DestinationChainID uint64 + DestinationIntentAddress prototyp.Hash + DestinationToAddress prototyp.Hash + DestinationTokenAddress prototyp.Hash + DestinationTokenAmount prototyp.BigInt + DestinationTokenMetadata *TokenMetadata + DestinationTransactionHash *prototyp.Hash + DestinationTransactionStatus TransactionStatus + ExpiresAt time.Time + ID uint64 + IntentID prototyp.Hash + OriginChainID uint64 + OriginIntentAddress prototyp.Hash + OriginTokenAddress prototyp.Hash + OriginTokenAmount prototyp.BigInt + OriginTokenMetadata *TokenMetadata + OriginTransactionHash *prototyp.Hash + OriginTransactionStatus TransactionStatus + OwnerAddress prototyp.Hash + Status IntentStatus + UpdatedAt *time.Time + type IntentTransaction struct + Calldata prototyp.Hash + ChainID uint64 + Context TransactionContext + CreatedAt *time.Time + DepositIntentEntry *DepositIntentEntry + FromAddress prototyp.Hash + ID uint64 + IntentID prototyp.Hash + MetaTxnFeeQuote *string + MetaTxnID prototyp.Hash + Precondition *TransactionPrecondition + Status TransactionStatus + StatusReason *string + ToAddress prototyp.Hash + TokenAddress prototyp.Hash + TokenAmount prototyp.BigInt + TxnHash prototyp.Hash + TxnMinedAt *time.Time + Type TransactionType + UpdatedAt *time.Time + type IntentTransactionGasFee struct + ChainGasUsageStatus ChainGasUsageStatus + ChainID uint64 + GasPrice prototyp.BigInt + MetaTxnFeeDetails *MetaTxnFeeDetails + MetaTxnGasQuote string + NativeTokenPriceUSD *float64 + NativeTokenSymbol string + TotalFeeAmount prototyp.BigInt + TotalFeeUSD float64 + TotalGasLimit prototyp.BigInt + type MeldQuote struct + CountryCode string + CustomerScore float64 + DestinationAmount float64 + DestinationAmountWithoutFees float64 + DestinationCurrencyCode string + ExchangeRate float64 + FiatAmountWithoutFees float64 + InstitutionName string + LowKyc bool + NetworkFee float64 + PartnerFee float64 + PaymentMethodType string + ServiceProvider string + SourceAmount float64 + SourceAmountWithoutFees float64 + SourceCurrencyCode string + TotalFee float64 + TransactionFee float64 + TransactionType string + type MetaTxn struct + ChainID uint64 + Contract string + ID string + Input string + WalletAddress string + type MetaTxnFeeDetails struct + EstimatedGasLimit prototyp.BigInt + FeeNative prototyp.BigInt + MetaTxnID string + type Options struct + HTTPClient HTTPClient + JWTAuthToken string + ProjectAccessKey string + TrailsAPIServiceURL string + type Page struct + After *uint64 + Before *uint64 + Column *string + More *bool + PageSize *uint32 + Sort []*SortBy + type QuoteIntentRequest struct + DestinationCallData *string + DestinationCallValue *prototyp.BigInt + DestinationChainID uint64 + DestinationToAddress prototyp.Hash + DestinationTokenAddress prototyp.Hash + DestinationTokenAmount *prototyp.BigInt + OnlyNativeGasFee bool + Options *QuoteIntentRequestOptions + OriginChainID uint64 + OriginTokenAddress prototyp.Hash + OriginTokenAmount *prototyp.BigInt + OwnerAddress prototyp.Hash + TradeType *TradeType + type QuoteIntentRequestOptions struct + BridgeProvider RouteProvider + SlippageTolerance *float64 + SwapProvider RouteProvider + TrailsAddressOverrides *TrailsAddressOverrides + type QuoteIntentResponse struct + GasFeeOptions *GasFeeOptions + Intent *Intent + type RouteProvider string + const RouteProvider_AUTO + const RouteProvider_CCTP + const RouteProvider_LIFI + const RouteProvider_RELAY + const RouteProvider_SUSHI + const RouteProvider_ZEROX + func (x *RouteProvider) Is(values ...RouteProvider) bool + func (x *RouteProvider) UnmarshalText(b []byte) error + func (x RouteProvider) MarshalText() ([]byte, error) + type RuntimeStatus struct + Branch string + CommitHash string + HealthOK bool + Hostname string + Runnables interface{} + Services []*ServiceStatus + StartTime time.Time + Uptime string + Version string + type SearchIntentsRequest struct + ByDestinationIntentAddress prototyp.Hash + ByIntentID prototyp.Hash + ByOriginIntentAddress prototyp.Hash + ByOwnerAddress prototyp.Hash + ByProjectID uint64 + ByQueryString string + ByTransactionHash prototyp.Hash + type SearchIntentsResponse struct + Intents []*Intent + type ServiceStatus struct + Error string + Healthy bool + Latency string + Name string + type SortBy struct + Column string + Order SortOrder + type SortOrder uint32 + const SortOrder_ASC + const SortOrder_DESC + func (x *SortOrder) Is(values ...SortOrder) bool + func (x *SortOrder) UnmarshalText(b []byte) error + func (x SortOrder) MarshalText() ([]byte, error) + func (x SortOrder) String() string + type Token struct + ChainID uint64 + TokenAddress prototyp.Hash + TokenSymbol *string + type TokenInfo struct + Address prototyp.Hash + ChainID uint64 + Decimals uint8 + FeatureIndex int + Featured bool + LogoURI string + Name string + SupportsBridging bool + Symbol string + type TokenMetadata struct + ChainID uint64 + Decimals *uint8 + LogoURI string + Name string + Symbol string + TokenAddress prototyp.Hash + type TokenPrice struct + PriceUSD *float64 + Token *Token + UpdatedAt time.Time + type TradeType string + const TradeType_EXACT_INPUT + const TradeType_EXACT_OUTPUT + func (x *TradeType) Is(values ...TradeType) bool + func (x *TradeType) UnmarshalText(b []byte) error + func (x TradeType) MarshalText() ([]byte, error) + type TrailsAddressOverrides struct + SequenceWalletFactoryAddress *string + SequenceWalletGuestModuleAddress *string + SequenceWalletMainModuleAddress *string + SequenceWalletMainModuleUpgradableAddress *string + SequenceWalletUtilsAddress *string + type TrailsClient interface + AbortIntent func(ctx context.Context, abortIntentRequest AbortIntentRequest) (*AbortIntentResponse, error) + Clock func(ctx context.Context) (time.Time, error) + CommitIntent func(ctx context.Context, commitIntentRequest CommitIntentRequest) (*CommitIntentResponse, error) + ExecuteIntent func(ctx context.Context, executeIntentRequest ExecuteIntentRequest) (*ExecuteIntentResponse, error) + GetChains func(ctx context.Context, getChainsRequest GetChainsRequest) (*GetChainsResponse, error) + GetExactInputRoutes func(ctx context.Context, getExactInputRoutesRequest GetExactInputRoutesRequest) (*GetExactInputRoutesResponse, error) + GetExactOutputRoutes func(ctx context.Context, getExactOutputRoutesRequest GetExactOutputRoutesRequest) (*GetExactOutputRoutesResponse, error) + GetIntent func(ctx context.Context, getIntentRequest GetIntentRequest) (*GetIntentResponse, error) + GetIntentHistory func(ctx context.Context, getIntentHistoryRequest GetIntentHistoryRequest) (*GetIntentHistoryResponse, error) + GetIntentReceipt func(ctx context.Context, getIntentReceiptRequest GetIntentReceiptRequest) (*GetIntentReceiptResponse, error) + GetIntentTransactionHistory func(ctx context.Context, ...) (*GetIntentTransactionHistoryResponse, error) + GetTokenList func(ctx context.Context, getTokenListRequest GetTokenListRequest) (*GetTokenListResponse, error) + GetTokenPrices func(ctx context.Context, getTokenPricesRequest GetTokenPricesRequest) (*GetTokenPricesResponse, error) + GetTrailsContracts func(ctx context.Context) (*TrailsContracts, error) + Ping func(ctx context.Context) (string, error) + QuoteIntent func(ctx context.Context, quoteIntentRequest QuoteIntentRequest) (*QuoteIntentResponse, error) + RuntimeStatus func(ctx context.Context) (*RuntimeStatus, error) + SearchIntents func(ctx context.Context, searchIntentsRequest SearchIntentsRequest) (*SearchIntentsResponse, error) + WaitIntentReceipt func(ctx context.Context, waitIntentReceiptRequest WaitIntentReceiptRequest) (*WaitIntentReceiptResponse, error) + func NewClient(clientOptions ...Options) TrailsClient + func NewTrailsClient(addr string, client HTTPClient) TrailsClient + type TrailsContracts struct + TrailsIntentEntrypointAddress prototyp.Hash + TrailsRouterAddress prototyp.Hash + TrailsRouterShimAddress prototyp.Hash + type TransactionCall struct + BehaviorOnError *uint8 + Data prototyp.Hash + DelegateCall *bool + GasLimit prototyp.BigInt + OnlyFallback *bool + To prototyp.Hash + Value prototyp.BigInt + type TransactionContext uint8 + const TransactionContext_CCTPV2_MESSAGE + const TransactionContext_NONE + func (x *TransactionContext) Is(values ...TransactionContext) bool + func (x *TransactionContext) UnmarshalText(b []byte) error + func (x TransactionContext) MarshalText() ([]byte, error) + func (x TransactionContext) String() string + type TransactionPrecondition struct + ChainID uint64 + MinAmount prototyp.BigInt + OwnerAddress prototyp.Hash + TokenAddress prototyp.Hash + Type string + type TransactionStatus uint8 + const TransactionStatus_ABORTED + const TransactionStatus_ERRORED + const TransactionStatus_FAILED + const TransactionStatus_MINING + const TransactionStatus_ON_HOLD + const TransactionStatus_PENDING + const TransactionStatus_RELAYING + const TransactionStatus_SENT + const TransactionStatus_SUCCEEDED + const TransactionStatus_UNKNOWN + func (x *TransactionStatus) Is(values ...TransactionStatus) bool + func (x *TransactionStatus) UnmarshalText(b []byte) error + func (x TransactionStatus) MarshalText() ([]byte, error) + func (x TransactionStatus) String() string + type TransactionType uint8 + const TransactionType_DEPOSIT + const TransactionType_DESTINATION + const TransactionType_ORIGIN + const TransactionType_ROUTE + const TransactionType_UNKNOWN + func (x *TransactionType) Is(values ...TransactionType) bool + func (x *TransactionType) UnmarshalText(b []byte) error + func (x TransactionType) MarshalText() ([]byte, error) + func (x TransactionType) String() string + type WaitIntentReceiptRequest struct + IntentID prototyp.Hash + LastReceiptStates []TransactionStatus + type WaitIntentReceiptResponse struct + Done bool + IntentReceipt *IntentReceipt + ReceiptStates []TransactionStatus + type WebRPCError struct + Cause string + Code int + HTTPStatus int + Message string + Name string + func ErrorWithCause(rpcErr WebRPCError, cause error) WebRPCError + func (e WebRPCError) Error() string + func (e WebRPCError) Is(target error) bool + func (e WebRPCError) Unwrap() error + func (e WebRPCError) WithCause(cause error) WebRPCError + func (e WebRPCError) WithCausef(format string, args ...interface{}) WebRPCError + type WebrpcGenVersions struct + CodeGenName string + CodeGenVersion string + SchemaName string + SchemaVersion string + WebrpcGenVersion string + func VersionFromHeader(h http.Header) (*WebrpcGenVersions, error)