get
agreements(): AgreementClient
Get the Agreements client instance
AgreementClient
get
assets(): AssetClient
Get the Assets client instance
AssetClient
get
listings(): ListingClient
Get the Listings client instance
ListingClient
get
smartLicenses(): SmartLicenseClient
Get the Smart Licenses client instance
SmartLicenseClient
get
bondToken(): BondTokenClient
Get the Bond Token client instance
BondTokenClient
get
users(): UserClient
Get the Users client instance
UserClient
get
products(): ProductClient
Get the Products client instance
ProductClient
get
royalties(): RoyaltyClient
Get the Royalties client instance
RoyaltyClient
get
invoices(): InvoiceClient
Get the Invoices client instance
InvoiceClient
get
query(): QueryClient
Get the Query client instance for querying indexed blockchain data
QueryClient
get
utils(): SpaceportUtils
Get the Utils module instance
SpaceportUtils
config
): SpaceportSDK
Name | Type |
---|---|
config | SpaceportConfig |
SpaceportSDK
config?
): SpaceportSDK
Create an instance of SpaceportClient
Name | Type | Description |
---|---|---|
config | SpaceportConfig | Optional configuration options |
SpaceportSDK
A new instance of SpaceportClient
ethereum
, config?
): SpaceportSDK
Create a new SDK instance with a wallet
Name | Type | Description |
---|---|---|
ethereum | EthereumProvider | Ethereum provider (e.g., window.ethereum) |
config | Omit <SpaceportConfig , "wallet" > | Additional SDK configuration |
SpaceportSDK
account
, config?
): SpaceportSDK
Create a new SDK instance with a specific account
Name | Type | Description |
---|---|---|
account | undefined | `0x${string}` | Account | Ethereum account address or Viem Account object created with privateKeyToAccount() |
config | Omit <SpaceportConfig , "account" > | Additional SDK configuration |
SpaceportSDK
Example
includeContentType?
): Record
<string
, string
>
Build authentication headers for API requests
Name | Type | Default value | Description |
---|---|---|---|
includeContentType | boolean | true | Whether to include Content-Type header (default: true) |
Record
<string
, string
>
signerAddress
, dataToSign
, primaryType
, types
): Promise
<SignatureParams
>
Generates EIP-712 signature parameters for contract interactions.
NOTE: This is a simplified adaptation. Production use requires robust nonce handling
and precise matching of types/domain with the target contract facet.
Name | Type | Description |
---|---|---|
signerAddress | `0x${string}` | The address performing the signing. |
dataToSign | Record <string , unknown > | An object containing the data fields specific to the EIP-712 type. |
primaryType | string | The primary EIP-712 type name (e.g., “_verifyTokenURI”). |
types | Record <string , { name : string ; type : string }[]> | The EIP-712 type definitions. |
Promise
<SignatureParams
>
The generated SignatureParams.
docURI
): Promise
<SignatureParams
>
Generates a document signature by signing the keccak256 hash of a document URI.
This method follows the same approach used in listings for document verification.
Name | Type | Description |
---|---|---|
docURI | string | The document URI to sign |
Promise
<SignatureParams
>
The signature params formatted for contract consumption
Readonly
config: SpaceportConfig
Readonly
publicClient: Object
Optional
Readonly
walletClient: Object
Optional
cultura: CulturaSDK