Skip to content

Commit

Permalink
Add update NFT ownership status endpoint (#158)
Browse files Browse the repository at this point in the history
* added update NFT ownership status endpoint

* docs: update NFT ownership status
  • Loading branch information
lazars14-f authored Apr 20, 2023
1 parent a683dfc commit d13c274
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/fireblocks-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ import {
TokenLink,
TokenLinkPermissionEntry,
IssueTokenRequest,
NFTOwnershipStatus,
} from "./types";
import { AxiosProxyConfig, AxiosResponse } from "axios";

Expand Down Expand Up @@ -1323,6 +1324,16 @@ export class FireblocksSDK {
return await this.apiClient.issuePutRequest(`/v1/nfts/tokens/${id}`, undefined);
}

/**
*
* Update NFT ownership status for specific token
* @param id NFT asset id
* @param status Status for update
*/
public async updateNFTOwnershipStatus(id: string, status: NFTOwnershipStatus): Promise<void> {
return await this.apiClient.issuePutRequest(`/v1/nfts/ownership/tokens/${id}/status`, { status });
}

/**
*
* @param vaultAccountId
Expand Down
5 changes: 5 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,11 @@ export enum OrderValues {
"DESC" = "DESC",
}

export enum NFTOwnershipStatus {
"LISTED" = "LISTED",
"ARCHIVED" = "ARCHIVED",
}

export enum TokenLinkPermission {
MINT = "MINT",
BURN = "BURN",
Expand Down

0 comments on commit d13c274

Please sign in to comment.