apiBaseUrl
, client?
): SpaceportUtils
Name | Type |
---|---|
apiBaseUrl | string |
client? | SpaceportSDK |
SpaceportUtils
userAddress
): Promise
<number
>
Gets the current nonce for a user from the blockchain contract.
This is required for generating valid signatures for contract interactions.
Name | Type | Description |
---|---|---|
userAddress | `0x${string}` | The address to get the nonce for |
Promise
<number
>
The current nonce for the user
walletAddress
): Promise
<number
>
Fetch nonce from the queue service
This gets the current nonce for transaction ordering from the queue management system.
Name | Type | Description |
---|---|---|
walletAddress | string | Wallet address to fetch nonce for |
Promise
<number
>
Promise resolving to nonce number
Example
jobId
, options?
): Promise
<JobStatusResponse
>
Polls job status until completion or timeout.
This function continuously checks the status of a job until it completes, fails, or times out.
Name | Type | Description |
---|---|---|
jobId | string | The ID of the job to poll |
options | JobStatusOptions | Polling options |
Promise
<JobStatusResponse
>
Promise that resolves with the final job status
Object
IPFS utilities
Name | Type | Description |
---|---|---|
uploadFile | (file : File ) => Promise <string > | - |
uploadMetadata | (metadata : Record <string , unknown >) => Promise <string > | - |