XRP GPT
XRP GPT · Acciones GPT
XRPWalletAPI
GET /walletBalanceList XRP wallet balanceShould return the current blanace of the XRP wallet address
GET /walletCurrenciesList currencies held by XRP wallet/accountShould return information about currencies held by XRP wallet/address
GET /walletTrustlinesList trustlines for a XRP wallet/accountShould return information a list of trustlines for a particular XRP wallet/address
GET /walletNFTsList NFTs in XRP wallet address/accountShould return the NFTs held by a particular XRP wallet address
GET /walletTxsList transaction for an XRP wallet address/accountShould return a list of transactions for a particular XRP wallet address/account
GET /walletTxGet XRP wallet/account transaction for a particular hashShould return a single XRP wallet/account transactions for a particular hash
Esquema original API
{
"openapi": "3.0.1",
"info": {
"title": "XRPWalletAPI",
"version": "2024-01-18T23:14:18Z"
},
"servers": [
{
"url": "https://api.gpt.xrpwatcher.com"
}
],
"paths": {
"/walletBalance": {
"get": {
"summary": "List XRP wallet balance",
"operationId": "walletBalance",
"description": "Should return the current blanace of the XRP wallet address",
"parameters": [
{
"name": "wallet_address",
"in": "query",
"required": true,
"description": "XRP Wallet address that the balance is being checked for",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "200 response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Balance"
}
}
}
}
}
}
},
"/walletCurrencies": {
"get": {
"summary": "List currencies held by XRP wallet/account",
"operationId": "walletCurrencies",
"description": "Should return information about currencies held by XRP wallet/address",
"parameters": [
{
"name": "wallet_address",
"in": "query",
"required": true,
"description": "XRP Wallet address that currencies should be checked for",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "200 response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Currencies"
}
}
}
}
}
}
},
"/walletTrustlines": {
"get": {
"summary": "List trustlines for a XRP wallet/account",
"operationId": "walletTrustlines",
"description": "Should return information a list of trustlines for a particular XRP wallet/address",
"parameters": [
{
"name": "wallet_address",
"in": "query",
"required": true,
"description": "XRP Wallet address that trustlines should be checked for",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "200 response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Trustlines"
}
}
}
}
}
}
},
"/walletNFTs": {
"get": {
"summary": "List NFTs in XRP wallet address/account",
"operationId": "walletNFTs",
"description": "Should return the NFTs held by a particular XRP wallet address",
"parameters": [
{
"name": "wallet_address",
"in": "query",
"required": true,
"description": "XRP Wallet address for retreiving NFTs that belong to it",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "200 response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NFTs"
}
}
}
}
}
}
},
"/walletTxs": {
"get": {
"summary": "List transaction for an XRP wallet address/account",
"operationId": "walletTxs",
"description": "Should return a list of transactions for a particular XRP wallet address/account",
"parameters": [
{
"name": "wallet_address",
"in": "query",
"required": true,
"description": "XRP Wallet addressto retreive wallet transactions",
"schema": {
"type": "string"
}
},
{
"name": "limit",
"in": "query",
"description": "How many items to transactions to return at one time (max 50)",
"required": false,
"schema": {
"type": "integer",
"maximum": 250,
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "200 response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Txs"
}
}
}
}
}
}
},
"/walletTx": {
"get": {
"summary": "Get XRP wallet/account transaction for a particular hash",
"operationId": "walletTx",
"description": "Should return a single XRP wallet/account transactions for a particular hash",
"parameters": [
{
"name": "hash",
"in": "query",
"required": true,
"description": "Hash to retreive an XRP wallet/account transactions",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "200 response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Tx"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Txs": {
"type": "list",
"required": [
"Account",
"Amount",
"Destination",
"Fee",
"Sequence",
"SigningPubKey",
"TransactionType",
"TxnSignature",
"hash",
"date",
"ledger_index",
"inLedger",
"Memos",
"AccountName"
],
"properties": {
"Account": {
"type": "string",
"format": "string"
},
"Amount": {
"type": "string"
},
"Destination": {
"type": "string"
},
"Fee": {
"type": "string"
},
"Sequence": {
"type": "integer"
},
"Memos": {
"type": "list"
},
"SigningPubKey": {
"type": "string"
},
"TransactionType": {
"type": "string"
},
"TxnSignature": {
"type": "string"
},
"hash": {
"type": "string"
},
"date": {
"type": "string"
},
"ledger_index": {
"type": "integer"
},
"inLedger": {
"type": "integer"
},
"AccountName": {
"type": "object"
}
}
},
"Tx": {
"type": "object",
"required": [
"Account",
"Amount",
"Destination",
"Fee",
"Sequence",
"SigningPubKey",
"TransactionType",
"TxnSignature",
"ctid",
"hash",
"date",
"ledger_index",
"inLedger",
"Memos",
"meta",
"AccountName"
],
"properties": {
"Account": {
"type": "string",
"format": "string"
},
"Amount": {
"type": "string"
},
"Destination": {
"type": "string"
},
"Fee": {
"type": "string"
},
"Sequence": {
"type": "integer"
},
"Memos": {
"type": "list"
},
"SigningPubKey": {
"type": "string"
},
"TransactionType": {
"type": "string"
},
"TxnSignature": {
"type": "string"
},
"cid": {
"type": "string"
},
"hash": {
"type": "string"
},
"date": {
"type": "string"
},
"ledger_index": {
"type": "integer"
},
"inLedger": {
"type": "integer"
},
"meta": {
"type": "object"
},
"AccountName": {
"type": "object"
}
}
},
"Balance": {
"type": "object",
"required": [
"Account",
"Balance",
"Flags",
"LedgerEntryType",
"OwnerCount",
"MessageKey",
"PreviousTxnID",
"PreviousTxnLgrSeq",
"RegularKey",
"Sequence",
"index"
],
"properties": {
"Account": {
"type": "string",
"format": "string"
},
"Balance": {
"type": "string"
},
"Flags": {
"type": "integer"
},
"LedgerEntryType": {
"type": "string"
},
"MessageKey": {
"type": "string"
},
"OwnerCount": {
"ype": "integer"
},
"PreviousTxnID": {
"type": "string"
},
"PreviousTxnLgrSeq": {
"type": "integer"
},
"RegularKey": {
"type": "string"
},
"Sequence": {
"type": "integer"
},
"index": {
"type": "string"
}
}
},
"NFTs": {
"type": "list",
"required": [
"account",
"account_nfts",
"ledger_hash",
"ledger_index",
"status",
"validated"
],
"properties": {
"account": {
"type": "string",
"format": "string"
},
"account_nfts": {
"type": "string"
},
"ledger_hash": {
"type": "string"
},
"ledger_index": {
"type": "integer"
},
"status": {
"type": "string"
},
"validated": {
"type": "boolean"
}
}
},
"Currencies": {
"type": "object",
"required": [
"ledger_hash",
"ledger_index",
"validated",
"receive_currencies",
"send_currencies"
],
"properties": {
"ledger_hash": {
"type": "string",
"format": "string"
},
"ledger_index": {
"type": "integer"
},
"validated": {
"type": "boolean"
},
"receive_currencies": {
"type": "list"
},
"send_currencies": {
"type": "list"
}
}
},
"Trustlines": {
"type": "list",
"required": [
"account",
"balance",
"currency",
"limit",
"limit_peer",
"limit",
"no_ripple_peer",
"quality_in",
"quality_out"
],
"properties": {
"account": {
"type": "string",
"format": "string"
},
"balance": {
"type": "string"
},
"currency": {
"type": "string"
},
"limit": {
"type": "string"
},
"limit_peer": {
"type": "string"
},
"no_ripple": {
"type": "boolean"
},
"no_ripple_peer": {
"type": "boolean"
},
"quality_in": {
"type": "integer"
},
"quality_out": {
"type": "integer"
}
}
},
"Empty": {
"title": "Empty Schema",
"type": "object",
"required": [
"error",
"error_code",
"error_message",
"ledger_current_index"
],
"properties": {
"code": {
"type": "string"
},
"error_code": {
"type": "integer"
},
"error_message": {
"type": "string"
},
"ledger_current_index": {
"type": "integer"
}
}
}
}
}
}