NFT API method fixes

This commit is contained in:
mDuo13
2022-05-23 16:43:40 -07:00
parent 1a21f1dbd3
commit 13e9ef0775
9 changed files with 460 additions and 385 deletions

View File

@@ -50,6 +50,17 @@ Request('account_lines', {
}
})
Request('account_nfts', {
description: "Retrieves NFTs owned by an account.",
link: "account_nfts.html",
status: "not_enabled",
body: {
"command": "account_nfts",
"account": "rsuHaTvJh1bDmDoxX9QcKP7HEBSBt4XsHx",
"ledger_index": "validated"
}
})
Request('account_objects', {
description: "Returns the raw ledger format for all objects owned by an account.",
link: "account_objects.html",
@@ -403,6 +414,28 @@ Request('deposit_authorized', {
}
})
Request('nft_buy_offers', {
description: "Retrieves offers to buy a given NFT.",
link: "nft_buy_offers.html",
status: "not_enabled",
body: {
"command": "nft_buy_offers",
"nft_id": "00090000D0B007439B080E9B05BF62403911301A7B1F0CFAA048C0A200000007",
"ledger_index": "validated"
}
})
Request('nft_sell_offers', {
description: "Retrieves offers to sell a given NFT.",
link: "nft_sell_offers.html",
status: "not_enabled",
body: {
"command": "nft_sell_offers",
"nft_id": "00090000D0B007439B080E9B05BF62403911301A7B1F0CFAA048C0A200000007",
"ledger_index": "validated"
}
})
Request('path_find', {
description: "Searches for a path along which a payment can possibly be made, and periodically sends updates when the path changes over time.",
link: "path_find.html",
@@ -544,38 +577,3 @@ Request('random', {
"command": "random"
}
})
Request("NFT Methods")
Request('account_nfts', {
description: "Retrieves NFTs owned by an account.",
link: "account_nfts.html",
status: "not_enabled",
body: {
"command": "account_nfts",
"account": "rsuHaTvJh1bDmDoxX9QcKP7HEBSBt4XsHx",
"ledger_index": "validated"
}
})
Request('nft_buy_offers', {
description: "Retrieves offers to buy a given NFT.",
link: "nft_buy_offers.html",
status: "not_enabled",
body: {
"command": "nft_buy_offers",
"tokenid": "00090000D0B007439B080E9B05BF62403911301A7B1F0CFAA048C0A200000007",
"ledger_index": "validated"
}
})
Request('nft_sell_offers', {
description: "Retrieves offers to sell a given NFT.",
link: "nft_sell_offers.html",
status: "not_enabled",
body: {
"command": "nft_sell_offers",
"tokenid": "00090000D0B007439B080E9B05BF62403911301A7B1F0CFAA048C0A200000007",
"ledger_index": "validated"
}
})