diff --git a/.api/api.json b/.api/api.json new file mode 100644 index 0000000..9decc7f --- /dev/null +++ b/.api/api.json @@ -0,0 +1,11 @@ +{ + "version": "1.0", + "apis": [ + { + "identifier": "tron", + "source": "@tron/v4.7.5#19cpcn4pollds6o2o", + "integrity": "sha512-KrNy5U67g66wZmF2O4LodI9pOeI7o45lLVlaBWb9xEQb8iwQID/hWX8dQythsSRtViJ7ua76D9EbsRjNUx8VKQ==", + "installerVersion": "6.1.1" + } + ] +} \ No newline at end of file diff --git a/.api/apis/tron/index.ts b/.api/apis/tron/index.ts new file mode 100644 index 0000000..df41dda --- /dev/null +++ b/.api/apis/tron/index.ts @@ -0,0 +1,1171 @@ +import type * as types from './types'; +import type { ConfigOptions, FetchResponse } from 'api/dist/core' +import Oas from 'oas'; +import APICore from 'api/dist/core'; +import definition from './openapi.json'; + +class SDK { + spec: Oas; + core: APICore; + + constructor() { + this.spec = Oas.init(definition); + this.core = new APICore(this.spec, 'tron/unknown (api/6.1.1)'); + } + + /** + * Optionally configure various options that the SDK allows. + * + * @param config Object of supported SDK options and toggles. + * @param config.timeout Override the default `fetch` request timeout of 30 seconds. This number + * should be represented in milliseconds. + */ + config(config: ConfigOptions) { + this.core.setConfig(config); + } + + /** + * If the API you're using requires authentication you can supply the required credentials + * through this method and the library will magically determine how they should be used + * within your API request. + * + * With the exception of OpenID and MutualTLS, it supports all forms of authentication + * supported by the OpenAPI specification. + * + * @example HTTP Basic auth + * sdk.auth('username', 'password'); + * + * @example Bearer tokens (HTTP or OAuth 2) + * sdk.auth('myBearerToken'); + * + * @example API Keys + * sdk.auth('myApiKey'); + * + * @see {@link https://spec.openapis.org/oas/v3.0.3#fixed-fields-22} + * @see {@link https://spec.openapis.org/oas/v3.1.0#fixed-fields-22} + * @param values Your auth credentials for the API; can specify up to two strings or numbers. + */ + auth(...values: string[] | number[]) { + this.core.setAuth(...values); + return this; + } + + /** + * If the API you're using offers alternate server URLs, and server variables, you can tell + * the SDK which one to use with this method. To use it you can supply either one of the + * server URLs that are contained within the OpenAPI definition (along with any server + * variables), or you can pass it a fully qualified URL to use (that may or may not exist + * within the OpenAPI definition). + * + * @example Server URL with server variables + * sdk.server('https://{region}.api.example.com/{basePath}', { + * name: 'eu', + * basePath: 'v14', + * }); + * + * @example Fully qualified server URL + * sdk.server('https://eu.api.example.com/v14'); + * + * @param url Server URL + * @param variables An object of variables to replace into the server URL. + */ + server(url: string, variables = {}) { + this.core.setServer(url, variables); + } + + /** + * Query the latest block information + * + * @summary GetNowBlock + */ + walletGetnowblock(): Promise> { + return this.core.fetch('/wallet/getnowblock', 'post'); + } + + /** + * Create a TRX transfer transaction. If to_address does not exist, then create the account + * on the blockchain. + * + * @summary CreateTransaction + * @throws FetchError<400, types.CreatetransactionResponse400> 400 + */ + createtransaction(body?: types.CreatetransactionBodyParam): Promise> { + return this.core.fetch('/wallet/createtransaction', 'post', body); + } + + /** + * Returns the Block Object corresponding to the 'Block Height' specified (number of blocks + * preceding it). + * + * @summary GetBlockByNum + */ + walletGetblockbynum(body?: types.WalletGetblockbynumBodyParam): Promise> { + return this.core.fetch('/wallet/getblockbynum', 'post', body); + } + + /** + * This interface has been deprecated. + * + * @summary EasyTransfer + * @throws FetchError<400, types.EasytransferResponse400> 400 + */ + easytransfer(body: types.EasytransferBodyParam): Promise> { + return this.core.fetch('/wallet/easytransfer', 'post', body); + } + + /** + * Modify account name + * + * @summary UpdateAccount + * @throws FetchError<400, types.UpdateaccountResponse400> 400 + */ + updateaccount(body?: types.UpdateaccountBodyParam): Promise> { + return this.core.fetch('/wallet/updateaccount', 'post', body); + } + + /** + * Generate a random private key and address. This API has been deprecated, please generate + * address offline. + * + * @summary GenerateAddress + * @throws FetchError<400, types.GenerateaddressResponse400> 400 + */ + generateaddress(): Promise> { + return this.core.fetch('/wallet/generateaddress', 'get'); + } + + /** + * Creates an address from the specified password string (not the private key).This + * interface has been deprecated, please generate address offline. + * + * @summary CreateAddress + * @throws FetchError<400, types.CreateaddressResponse400> 400 + */ + createaddress(body: types.CreateaddressBodyParam): Promise> { + return this.core.fetch('/wallet/createaddress', 'post', body); + } + + /** + * List all Super Representatives. + * + * @summary ListWitnesses + */ + listwitnesses(): Promise> { + return this.core.fetch('/wallet/listwitnesses', 'get'); + } + + /** + * Update basic TRC10 token information. + * + * @summary UpdateAsset + * @throws FetchError<400, types.WalletUpdateassetResponse400> 400 + */ + walletUpdateasset(body?: types.WalletUpdateassetBodyParam): Promise> { + return this.core.fetch('/wallet/updateasset', 'post', body); + } + + /** + * Query the TRC10 token information issued by an account. + * + * @summary GetAssetIssueByAccount + */ + getassetissuebyaccount(body?: types.GetassetissuebyaccountBodyParam): Promise> { + return this.core.fetch('/wallet/getassetissuebyaccount', 'post', body); + } + + /** + * Query bandwidth information. + * + * @summary GetAccountNet + */ + getaccountnet(body?: types.GetaccountnetBodyParam): Promise> { + return this.core.fetch('/wallet/getaccountnet', 'post', body); + } + + /** + * Query the list of nodes connected to the API node + * + * @summary ListNodes + * @throws FetchError<400, types.WalletListnodesResponse400> 400 + */ + walletListnodes(): Promise> { + return this.core.fetch('/wallet/listnodes', 'get'); + } + + /** + * Query block by ID(block hash). + * + * @summary GetBlockById + */ + getblockbyid(body?: types.GetblockbyidBodyParam): Promise> { + return this.core.fetch('/wallet/getblockbyid', 'post', body); + } + + /** + * Query a token by token id. Returns the token object, which contains the token name. + * + * @summary GetAssetIssueById + */ + getassetissuebyid(body?: types.GetassetissuebyidBodyParam): Promise> { + return this.core.fetch('/wallet/getassetissuebyid', 'post', body); + } + + /** + * Query transaction information by transaction id. + * + * @summary GetTransactionById + */ + walletGettransactionbyid(body?: types.WalletGettransactionbyidBodyParam): Promise> { + return this.core.fetch('/wallet/gettransactionbyid', 'post', body); + } + + /** + * Query the list of all the TRC10 tokens. + * + * @summary GetAssetIssueList + */ + getassetissuelist(): Promise> { + return this.core.fetch('/wallet/getassetissuelist', 'get'); + } + + /** + * Returns the list of Block Objects included in the 'Block Height' range specified. + * + * @summary GetBlockByLimitNext + * @throws FetchError<400, types.GetblockbylimitnextResponse400> 400 + */ + getblockbylimitnext(body?: types.GetblockbylimitnextBodyParam): Promise> { + return this.core.fetch('/wallet/getblockbylimitnext', 'post', body); + } + + /** + * Returns a list of block objects. + * + * @summary GetBlockByLatestNum + * @throws FetchError<400, types.WalletGetblockbylatestnumResponse400> 400 + */ + walletGetblockbylatestnum(body?: types.WalletGetblockbylatestnumBodyParam): Promise> { + return this.core.fetch('/wallet/getblockbylatestnum', 'post', body); + } + + /** + * Returns the timestamp of the next voting time in milliseconds. + * + * @summary GetNextMaintenanceTime + * @throws FetchError<400, types.GetnextmaintenancetimeResponse400> 400 + */ + getnextmaintenancetime(): Promise> { + return this.core.fetch('/wallet/getnextmaintenancetime', 'get'); + } + + /** + * Injects capital into the transaction. The purpose of injecting capital into the trading + * pair is to prevent price fluctuation from affecting the transaction. + * + * @summary ExchangeInject + * @throws FetchError<400, types.ExchangeinjectResponse400> 400 + */ + exchangeinject(body?: types.ExchangeinjectBodyParam): Promise> { + return this.core.fetch('/wallet/exchangeinject', 'post', body); + } + + /** + * Validates address, returns either true or false. + * + * @summary ValidateAddress + * @throws FetchError<400, types.ValidateaddressResponse400> 400 + */ + validateaddress(body: types.ValidateaddressBodyParam): Promise> { + return this.core.fetch('/wallet/validateaddress', 'post', body); + } + + /** + * Query the list of all the tokens by pagination.Returns a list of Tokens that succeed the + * Token located at offset. + * + * @summary GetPaginatedAssetIssueList + */ + getpaginatedassetissuelist(body?: types.GetpaginatedassetissuelistBodyParam): Promise> { + return this.core.fetch('/wallet/getpaginatedassetissuelist', 'post', body); + } + + /** + * Withdraws the transaction pair. + * + * @summary ExchangeWithdraw + * @throws FetchError<400, types.ExchangewithdrawResponse400> 400 + */ + exchangewithdraw(body?: types.ExchangewithdrawBodyParam): Promise> { + return this.core.fetch('/wallet/exchangewithdraw', 'post', body); + } + + /** + * Query exchange pair based on id + * + * @summary GetExchangeById + * @throws FetchError<400, types.WalletGetexchangebyidResponse400> 400 + */ + walletGetexchangebyid(body?: types.WalletGetexchangebyidBodyParam): Promise> { + return this.core.fetch('/wallet/getexchangebyid', 'post', body); + } + + /** + * Participate the transaction of exchange pair + * + * @summary ExchangeTransaction + * @throws FetchError<400, types.ExchangetransactionResponse400> 400 + */ + exchangetransaction(body?: types.ExchangetransactionBodyParam): Promise> { + return this.core.fetch('/wallet/exchangetransaction', 'post', body); + } + + /** + * List all exchange pairs. + * + * @summary ListExchanges + * @throws FetchError<400, types.WalletListexchangesResponse400> 400 + */ + walletListexchanges(metadata?: types.WalletListexchangesMetadataParam): Promise> { + return this.core.fetch('/wallet/listexchanges', 'get', metadata); + } + + /** + * Creates a proposal transaction. + * + * @summary ProposalCreate + * @throws FetchError<400, types.ProposalcreateResponse400> 400 + */ + proposalcreate(body?: types.ProposalcreateBodyParam): Promise> { + return this.core.fetch('/wallet/proposalcreate', 'post', body); + } + + /** + * Queries proposal based on ID and returns proposal details. + * + * @summary GetProposalById + * @throws FetchError<400, types.GetproposalbyidResponse400> 400 + */ + getproposalbyid(body?: types.GetproposalbyidBodyParam): Promise> { + return this.core.fetch('/wallet/getproposalbyid', 'post', body); + } + + /** + * List all proposals. + * + * @summary ListProposals + * @throws FetchError<400, types.WalletListproposalsResponse400> 400 + */ + walletListproposals(): Promise> { + return this.core.fetch('/wallet/listproposals', 'get'); + } + + /** + * Approves proposed transaction. + * + * @summary ProposalApprove + * @throws FetchError<400, types.ProposalapproveResponse400> 400 + */ + proposalapprove(body?: types.ProposalapproveBodyParam): Promise> { + return this.core.fetch('/wallet/proposalapprove', 'post', body); + } + + /** + * Deletes Proposal Transaction. + * + * @summary ProposalDelete + * @throws FetchError<400, types.ProposaldeleteResponse400> 400 + */ + proposaldelete(body?: types.ProposaldeleteBodyParam): Promise> { + return this.core.fetch('/wallet/proposaldelete', 'post', body); + } + + /** + * Query information about an account, including TRX balance, TRC-10 balances, stake + * information and vote information and permissions etc. + * + * @summary GetAccount + * @throws FetchError<400, types.AccountGetaccountResponse400> 400 + */ + accountGetaccount(body?: types.AccountGetaccountBodyParam): Promise> { + return this.core.fetch('/wallet/getaccount', 'post', body); + } + + /** + * Sign the transaction, it is recommended to sign transactions offline. + * + * @summary GetTransactionSign + * @throws FetchError<400, types.GettransactionsignResponse400> 400 + */ + gettransactionsign(body: types.GettransactionsignBodyParam): Promise> { + return this.core.fetch('/wallet/gettransactionsign', 'post', body); + } + + /** + * Broadcast the signed transaction + * + * @summary BroadcastTransaction + */ + broadcasttransaction(body: types.BroadcasttransactionBodyParam): Promise> { + return this.core.fetch('/wallet/broadcasttransaction', 'post', body); + } + + /** + * Apply to become a witness. + * + * @summary CreateWitness + * @throws FetchError<400, types.CreatewitnessResponse400> 400 + */ + createwitness(body?: types.CreatewitnessBodyParam): Promise> { + return this.core.fetch('/wallet/createwitness', 'post', body); + } + + /** + * Vote for witnesses + * + * @summary VoteWitnessAccount + * @throws FetchError<400, types.VotewitnessaccountResponse400> 400 + */ + votewitnessaccount(body?: types.VotewitnessaccountBodyParam): Promise> { + return this.core.fetch('/wallet/votewitnessaccount', 'post', body); + } + + /** + * Activate an account. Uses an already activated account to activate a new account. Users + * have to generate an account locally with wallet-cli or others SDKs like TronWeb, and + * then use this API to activate the account generated, or just simply transfer TRX to it. + * + * @summary CreateAccount + * @throws FetchError<400, types.AccountCreateaccountResponse400> 400 + */ + accountCreateaccount(body?: types.AccountCreateaccountBodyParam): Promise> { + return this.core.fetch('/wallet/createaccount', 'post', body); + } + + /** + * Transfer TRC10 token. + * + * @summary TransferAsset + * @throws FetchError<400, types.TransferassetResponse400> 400 + */ + transferasset(body?: types.TransferassetBodyParam): Promise> { + return this.core.fetch('/wallet/transferasset', 'post', body); + } + + /** + * Participate in an asset issue. + * + * @summary ParticipateAssetIssue + * @throws FetchError<400, types.ParticipateassetissueResponse400> 400 + */ + participateassetissue(body?: types.ParticipateassetissueBodyParam): Promise> { + return this.core.fetch('/wallet/participateassetissue', 'post', body); + } + + /** + * Issue a TRC10 token. + * + * @summary CreateAssetIssue + */ + createassetissue(body?: types.CreateassetissueBodyParam): Promise> { + return this.core.fetch('/wallet/createassetissue', 'post', body); + } + + /** + * This interface has been deprecated, please use + * [FreezeBalanceV2](/reference/freezebalancev2-1) to stake TRX to obtain resources. + * + * @summary FreezeBalance + * @throws FetchError<400, types.AccountResourcesFreezebalanceResponse400> 400 + */ + accountResourcesFreezebalance(body?: types.AccountResourcesFreezebalanceBodyParam): Promise> { + return this.core.fetch('/wallet/freezebalance', 'post', body); + } + + /** + * Unstake the TRX staked during Stake1.0, release the obtained bandwidth or energy and TP. + * This operation will cause automatically cancel all votes. + * + * @summary UnfreezeBalance + * @throws FetchError<400, types.AccountResourcesUnfreezebalanceResponse400> 400 + */ + accountResourcesUnfreezebalance(body?: types.AccountResourcesUnfreezebalanceBodyParam): Promise> { + return this.core.fetch('/wallet/unfreezebalance', 'post', body); + } + + /** + * Unstake a token that has passed the minimum freeze duration. + * + * @summary UnfreezeAsset + * @throws FetchError<400, types.UnfreezeassetResponse400> 400 + */ + unfreezeasset(body?: types.UnfreezeassetBodyParam): Promise> { + return this.core.fetch('/wallet/unfreezeasset', 'post', body); + } + + /** + * Deploys a contract. Returns TransactionExtention, which contains an unsigned + * transaction. + * + * @summary DeployContract + * @throws FetchError<400, types.WalletDeploycontractResponse400> 400 + */ + walletDeploycontract(body?: types.WalletDeploycontractBodyParam): Promise> { + return this.core.fetch('/wallet/deploycontract', 'post', body); + } + + /** + * Super Representative or user withdraw rewards, usable every 24 hours. + * Super representatives can withdraw the balance from the account allowance into the + * account balance, + * Users can claim the voting reward from the SRs and deposit into his account balance. + * + * @summary WithdrawBalance + * @throws FetchError<400, types.WithdrawbalanceResponse400> 400 + */ + withdrawbalance(body?: types.WithdrawbalanceBodyParam): Promise> { + return this.core.fetch('/wallet/withdrawbalance', 'post', body); + } + + /** + * This interface has been deprecated. + * + * @summary EasyTransferByPrivate + * @throws FetchError<400, types.EasytransferbyprivateResponse400> 400 + */ + easytransferbyprivate(body: types.EasytransferbyprivateBodyParam): Promise> { + return this.core.fetch('/wallet/easytransferbyprivate', 'post', body); + } + + /** + * Queries a contract's information from the blockchain, including the bytecode of the + * contract, ABI, configuration parameters, etc. + * + * @summary GetContract + * @throws FetchError<400, types.WalletGetcontractResponse400> 400 + */ + walletGetcontract(body?: types.WalletGetcontractBodyParam): Promise> { + return this.core.fetch('/wallet/getcontract', 'post', body); + } + + /** + * Returns TransactionExtention, which contains the unsigned Transaction + * + * @summary TriggerSmartContract + * @throws FetchError<400, types.TriggersmartcontractResponse400> 400 + */ + triggersmartcontract(body: types.TriggersmartcontractBodyParam): Promise> { + return this.core.fetch('/wallet/triggersmartcontract', 'post', body); + } + + /** + * Creates a trading pair. + * + * @summary ExchangeCreate + * @throws FetchError<400, types.ExchangecreateResponse400> 400 + */ + exchangecreate(body?: types.ExchangecreateBodyParam): Promise> { + return this.core.fetch('/wallet/exchangecreate', 'post', body); + } + + /** + * Query Node Information. Returns information about current state of node. + * + * @summary GetNodeInfo + * @throws FetchError<400, types.WalletGetnodeinfoResponse400> 400 + */ + walletGetnodeinfo(): Promise> { + return this.core.fetch('/wallet/getnodeinfo', 'get'); + } + + /** + * Update the consume_user_resource_percent parameter of a smart contract + * + * @summary UpdateSetting + * @throws FetchError<400, types.WalletUpdatesettingResponse400> 400 + */ + walletUpdatesetting(body: types.WalletUpdatesettingBodyParam): Promise> { + return this.core.fetch('/wallet/updatesetting', 'post', body); + } + + /** + * Update the origin_energy_limit parameter of a smart contract + * + * @summary UpdateEnergyLimit + * @throws FetchError<400, types.WalletUpdateenergylimitResponse400> 400 + */ + walletUpdateenergylimit(body?: types.WalletUpdateenergylimitBodyParam): Promise> { + return this.core.fetch('/wallet/updateenergylimit', 'post', body); + } + + /** + * This interface has been deprecated. + * + * @summary EasyTransferAsset + * @throws FetchError<400, types.EasytransferassetResponse400> 400 + */ + easytransferasset(body?: types.EasytransferassetBodyParam): Promise> { + return this.core.fetch('/wallet/easytransferasset', 'post', body); + } + + /** + * Query the resource delegation by an account during stake1.0 phase. i.e. list all + * addresses that have delegated resources to an account. + * + * @summary GetDelegatedResourceAccountIndex + * @throws FetchError<400, types.GetdelegatedresourceaccountindexResponse400> 400 + */ + getdelegatedresourceaccountindex(body?: types.GetdelegatedresourceaccountindexBodyParam): Promise> { + return this.core.fetch('/wallet/getdelegatedresourceaccountindex', 'post', body); + } + + /** + * This interface has been deprecated. + * + * @summary EasyTransferAssetByPrivate + * @throws FetchError<400, types.EasytransferassetbyprivateResponse400> 400 + */ + easytransferassetbyprivate(body?: types.EasytransferassetbyprivateBodyParam): Promise> { + return this.core.fetch('/wallet/easytransferassetbyprivate', 'post', body); + } + + /** + * Returns all resources delegations during stake1.0 phase from an account to another + * account. The fromAddress can be retrieved from the GetDelegatedResourceAccountIndex API. + * + * @summary GetDelegatedResource + * @throws FetchError<400, types.GetdelegatedresourceResponse400> 400 + */ + getdelegatedresource(body: types.GetdelegatedresourceBodyParam): Promise> { + return this.core.fetch('/wallet/getdelegatedresource', 'post', body); + } + + /** + * Query the transaction fee, block height by transaction id + * + * @summary GetTransactionInfoById + */ + gettransactioninfobyid(body?: types.GettransactioninfobyidBodyParam): Promise> { + return this.core.fetch('/wallet/gettransactioninfobyid', 'post', body); + } + + /** + * Edit the URL of the witness's official website. + * + * @summary UpdateWitness + */ + updatewitness(body?: types.UpdatewitnessBodyParam): Promise> { + return this.core.fetch('/wallet/updatewitness', 'post', body); + } + + /** + * To clear the ABI info of a smart contract. + * + * @summary ClearAbi + * @throws FetchError<400, types.ClearabiResponse400> 400 + */ + clearabi(body?: types.ClearabiBodyParam): Promise> { + return this.core.fetch('/wallet/clearabi', 'post', body); + } + + /** + * Invoke the readonly function (modified by the `view` or `pure` modifier) of a contract + * for contract data query; or Invoke the non-readonly function of a contract for + * predicting whether the transaction can be successfully executed and estimating the + * energy consumption; or estimate the energy consumption of contract deployment + * + * @summary TriggerConstantContract + * @throws FetchError<400, types.TriggerconstantcontractResponse400> 400 + */ + triggerconstantcontract(body?: types.TriggerconstantcontractBodyParam): Promise> { + return this.core.fetch('/wallet/triggerconstantcontract', 'post', body); + } + + /** + * Update the witness's brokerage setting. + * + * @summary UpdateBrokerage + * @throws FetchError<400, types.WalletUpdatebrokerageResponse400> 400 + */ + walletUpdatebrokerage(body?: types.WalletUpdatebrokerageBodyParam): Promise> { + return this.core.fetch('/wallet/updateBrokerage', 'post', body); + } + + /** + * Get SR brokerage ratio + * + * @summary GetBrokerage + * @throws FetchError<400, types.WalletGetbrokerageResponse400> 400 + */ + walletGetbrokerage(body?: types.WalletGetbrokerageBodyParam): Promise> { + return this.core.fetch('/wallet/getBrokerage', 'post', body); + } + + /** + * Get the rewards that a witness or a user has not yet withdrawn. + * + * @summary GetReward + * @throws FetchError<400, types.WalletGetrewardResponse400> 400 + */ + walletGetreward(body?: types.WalletGetrewardBodyParam): Promise> { + return this.core.fetch('/wallet/getReward', 'post', body); + } + + /** + * Query the resource information of an account(bandwidth,energy,etc) + * + * @summary GetAccountResource + * @throws FetchError<400, types.GetaccountresourceResponse400> 400 + */ + getaccountresource(body?: types.GetaccountresourceBodyParam): Promise> { + return this.core.fetch('/wallet/getaccountresource', 'post', body); + } + + /** + * All parameters that the blockchain committee can set + * + * @summary GetChainParameters + * @throws FetchError<400, types.WalletGetchainparametersResponse400> 400 + */ + walletGetchainparameters(): Promise> { + return this.core.fetch('/wallet/getchainparameters', 'get'); + } + + /** + * Broadcast the protobuf encoded transaction hex string after sign + * + * @summary BroadcastHex + * @throws FetchError<400, types.BroadcasthexResponse400> 400 + */ + broadcasthex(body: types.BroadcasthexBodyParam): Promise> { + return this.core.fetch('/wallet/broadcasthex', 'post', body); + } + + /** + * GetTransactionInfoByBlockNum + * + * @throws FetchError<400, types.GettransactioninfobyblocknumResponse400> 400 + */ + gettransactioninfobyblocknum(body?: types.GettransactioninfobyblocknumBodyParam): Promise> { + return this.core.fetch('/wallet/gettransactioninfobyblocknum', 'post', body); + } + + /** + * Update the account's permission. + * + * @summary AccountPermissionUpdate + * @throws FetchError<400, types.AccountpermissionupdateResponse400> 400 + */ + accountpermissionupdate(body?: types.AccountpermissionupdateBodyParam): Promise> { + return this.core.fetch('/wallet/accountpermissionupdate', 'post', body); + } + + /** + * Note:To ensure security, Trongrid has disabled this interface service, please use the + * service provided by the local node. + * + * @summary GetSpendingKey + * @throws FetchError<400, types.GetspendingkeyResponse400> 400 + */ + getspendingkey(): Promise> { + return this.core.fetch('/wallet/getspendingkey', 'get'); + } + + /** + * Note:To ensure security, Trongrid has disabled this interface service, please use the + * service provided by the local node. + * + * @summary GetExpandedSpendingKey + * @throws FetchError<400, types.GetexpandedspendingkeyResponse400> 400 + */ + getexpandedspendingkey(body?: types.GetexpandedspendingkeyBodyParam): Promise> { + return this.core.fetch('/wallet/getexpandedspendingkey', 'post', body); + } + + /** + * GetZenPaymentAddress + * + * @throws FetchError<400, types.GetzenpaymentaddressResponse400> 400 + */ + getzenpaymentaddress(body: types.GetzenpaymentaddressBodyParam): Promise> { + return this.core.fetch('/wallet/getzenpaymentaddress', 'post', body); + } + + /** + * Note:To ensure security, Trongrid has disabled this interface service, please use the + * service provided by the local node. + * + * @summary GetAkFromAsk + * @throws FetchError<400, types.GetakfromaskResponse400> 400 + */ + getakfromask(body: types.GetakfromaskBodyParam): Promise> { + return this.core.fetch('/wallet/getakfromask', 'post', body); + } + + /** + * GetNkFromNsk + * + * @throws FetchError<400, types.GetnkfromnskResponse400> 400 + */ + getnkfromnsk(body: types.GetnkfromnskBodyParam): Promise> { + return this.core.fetch('/wallet/getnkfromnsk', 'post', body); + } + + /** + * Note:To ensure security, Trongrid has disabled this interface service, please use the + * service provided by the local node. + * + * @summary GetNewShieldedAddress + * @throws FetchError<400, types.GetnewshieldedaddressResponse400> 400 + */ + getnewshieldedaddress(): Promise> { + return this.core.fetch('/wallet/getnewshieldedaddress', 'get'); + } + + /** + * Note:To ensure security, Trongrid has disabled this interface service, please use the + * service provided by the local node. + * + * @summary CreateShieldedContractParameters + * @throws FetchError<400, types.CreateshieldedcontractparametersResponse400> 400 + */ + createshieldedcontractparameters(body: types.CreateshieldedcontractparametersBodyParam): Promise> { + return this.core.fetch('/wallet/createshieldedcontractparameters', 'post', body); + } + + /** + * GetDiversifier + * + * @throws FetchError<400, types.GetdiversifierResponse400> 400 + */ + getdiversifier(): Promise> { + return this.core.fetch('/wallet/getdiversifier', 'get'); + } + + /** + * GetIncomingViewingKey + * + * @throws FetchError<400, types.GetincomingviewingkeyResponse400> 400 + */ + getincomingviewingkey(body: types.GetincomingviewingkeyBodyParam): Promise> { + return this.core.fetch('/wallet/getincomingviewingkey', 'post', body); + } + + /** + * Note:To ensure security, Trongrid has disabled this interface service, please use the + * service provided by the local node. + * + * @summary CreateSpendAuthSig + * @throws FetchError<400, types.CreatespendauthsigResponse400> 400 + */ + createspendauthsig(body: types.CreatespendauthsigBodyParam): Promise> { + return this.core.fetch('/wallet/createspendauthsig', 'post', body); + } + + /** + * GetTriggerInputForShieldedTrc20Contract + * + * @throws FetchError<400, types.Gettriggerinputforshieldedtrc20ContractResponse400> 400 + */ + gettriggerinputforshieldedtrc20contract(): Promise> { + return this.core.fetch('/wallet/gettriggerinputforshieldedtrc20contract', 'post'); + } + + /** + * IsShieldedTrc20ContractNoteSpent + * + * @throws FetchError<400, types.Isshieldedtrc20ContractnotespentResponse400> 400 + */ + isshieldedtrc20contractnotespent(body: types.Isshieldedtrc20ContractnotespentBodyParam): Promise> { + return this.core.fetch('/wallet/isshieldedtrc20contractnotespent', 'post', body); + } + + /** + * Scan outgoing notes(spent). + * + * @summary ScanShieldedTrc20NotesByOvk + * @throws FetchError<400, types.Scanshieldedtrc20NotesbyovkResponse400> 400 + */ + scanshieldedtrc20notesbyovk(body: types.Scanshieldedtrc20NotesbyovkBodyParam): Promise> { + return this.core.fetch('/wallet/scanshieldedtrc20notesbyovk', 'post', body); + } + + /** + * Scan outgoing notes. + * + * @summary ScanShieldedTrc20NotesByIvk + * @throws FetchError<400, types.Scanshieldedtrc20NotesbyivkResponse400> 400 + */ + scanshieldedtrc20notesbyivk(body: types.Scanshieldedtrc20NotesbyivkBodyParam): Promise> { + return this.core.fetch('/wallet/scanshieldedtrc20notesbyivk', 'post', body); + } + + /** + * Get transaction details from the pending pool + * + * @summary GetTransactionFromPending + * @throws FetchError<400, types.GettransactionfrompendingResponse400> 400 + */ + gettransactionfrompending(body?: types.GettransactionfrompendingBodyParam): Promise> { + return this.core.fetch('/wallet/gettransactionfrompending', 'post', body); + } + + /** + * Get transaction list information from pending pool + * + * @summary GetTransactionListFromPending + * @throws FetchError<400, types.GettransactionlistfrompendingResponse400> 400 + */ + gettransactionlistfrompending(): Promise> { + return this.core.fetch('/wallet/gettransactionlistfrompending', 'get'); + } + + /** + * Get the size of the pending pool queue + * + * @summary GetPendingSize + * @throws FetchError<400, types.GetpendingsizeResponse400> 400 + */ + getpendingsize(): Promise> { + return this.core.fetch('/wallet/getpendingsize', 'get'); + } + + /** + * Get all balance change operations in a block.(Note: At present, the interface data can + * only be queried through the following official nodes 13.228.119.63 & + * 18.139.193.235&18.141.79.38 &18.139.248.26) + * + * @summary GetBlockBalance + * @throws FetchError<400, types.GetblockbalanceResponse400> 400 + */ + getblockbalance(body?: types.GetblockbalanceBodyParam): Promise> { + return this.core.fetch('/wallet/getblockbalance', 'post', body); + } + + /** + * Get the account balance in a specific block.(Note: At present, the interface data can + * only be queried through the following official nodes 13.228.119.63 & 18.139.193.235 & + * 18.141.79.38 & 18.139.248.26) + * + * @summary GetAccountBalance + * @throws FetchError<400, types.GetaccountbalanceResponse400> 400 + */ + getaccountbalance(body?: types.GetaccountbalanceBodyParam): Promise> { + return this.core.fetch('/wallet/getaccountbalance', 'post', body); + } + + /** + * Queries a contract's information from the blockchain. The difference from the + * `wallet/getcontract` interface is that this interface returns not only the `bytecode` + * but also the `runtime bytecode` of the contract. Compared with `bytecode`, `runtime + * bytecode` does not contain constructor and constructor parameter information. + * + * @summary GetContractInfo + * @throws FetchError<400, types.GetcontractinfoResponse400> 400 + */ + getcontractinfo(body?: types.GetcontractinfoBodyParam): Promise> { + return this.core.fetch('/wallet/getcontractinfo', 'post', body); + } + + /** + * Query historical energy unit price + * + * @summary GetEnergyPrices + */ + getenergyprices(): Promise> { + return this.core.fetch('/wallet/getenergyprices', 'get'); + } + + /** + * Query historical bandwidth unit price + * + * @summary GetBandwidthPrices + */ + getbandwidthprices(): Promise> { + return this.core.fetch('/wallet/getbandwidthprices', 'get'); + } + + /** + * Query block header information or entire block information according to block height or + * block hash + * + * @summary GetBlock + */ + getblock1(body?: types.Getblock1BodyParam): Promise> { + return this.core.fetch('/wallet/getblock', 'post', body); + } + + /** + * Estimate the energy required for the successful execution of smart contract transactions + * or deploying a contract + * + * @summary EstimateEnergy + * @throws FetchError<400, types.EstimateenergyResponse400> 400 + */ + estimateenergy(body?: types.EstimateenergyBodyParam): Promise> { + return this.core.fetch('/wallet/estimateenergy', 'post', body); + } + + /** + * Query the amount of TRX burned due to on-chain transaction fees since [No. 54 Committee + * Proposal ](https://tronscan.org/#/proposal/54) took effect + * + * @summary GetBurnTRX + */ + getburntrx(): Promise> { + return this.core.fetch('/wallet/getburntrx', 'get'); + } + + /** + * In Stake2.0, stake an amount of TRX to obtain bandwidth or energy, and obtain equivalent + * TRON Power(TP) according to the staked amount + * + * @summary FreezeBalanceV2 + * @throws FetchError<400, types.Freezebalancev21Response400> 400 + */ + freezebalancev21(body: types.Freezebalancev21BodyParam): Promise> { + return this.core.fetch('/wallet/freezebalancev2', 'post', body); + } + + /** + * Unstake some TRX staked in Stake2.0, release the corresponding amount of bandwidth or + * energy, and voting rights (TP) + * + * @summary UnfreezeBalanceV2 + * @throws FetchError<400, types.Unfreezebalancev21Response400> 400 + */ + unfreezebalancev21(body?: types.Unfreezebalancev21BodyParam): Promise> { + return this.core.fetch('/wallet/unfreezebalancev2', 'post', body); + } + + /** + * Delegate bandwidth or energy resources to other accounts in Stake2.0. + * + * @summary DelegateResource + * @throws FetchError<400, types.Delegateresource1Response400> 400 + */ + delegateresource1(body?: types.Delegateresource1BodyParam): Promise> { + return this.core.fetch('/wallet/delegateresource', 'post', body); + } + + /** + * Withdraw unfrozen balance in Stake2.0, the user can call this API to get back their + * funds after executing /wallet/unfreezebalancev2 transaction and waiting N days, N is a + * network parameter + * + * @summary WithdrawExpireUnfreeze + * @throws FetchError<400, types.WithdrawexpireunfreezeResponse400> 400 + */ + withdrawexpireunfreeze(body?: types.WithdrawexpireunfreezeBodyParam): Promise> { + return this.core.fetch('/wallet/withdrawexpireunfreeze', 'post', body); + } + + /** + * Cancel the delegation of bandwidth or energy resources to other accounts in Stake2.0 + * + * @summary UnDelegateResource + * @throws FetchError<400, types.Undelegateresource1Response400> 400 + */ + undelegateresource1(body?: types.Undelegateresource1BodyParam): Promise> { + return this.core.fetch('/wallet/undelegateresource', 'post', body); + } + + /** + * Remaining times of executing unstake operation in Stake2.0 + * + * @summary GetAvailableUnfreezeCount + * @throws FetchError<400, types.Getavailableunfreezecount1Response400> 400 + */ + getavailableunfreezecount1(body?: types.Getavailableunfreezecount1BodyParam): Promise> { + return this.core.fetch('/wallet/getavailableunfreezecount', 'post', body); + } + + /** + * Query the withdrawable balance at the specified timestamp In Stake2.0 + * + * @summary GetCanWithdrawUnfreezeAmount + * @throws FetchError<400, types.Getcanwithdrawunfreezeamount1Response400> 400 + */ + getcanwithdrawunfreezeamount1(body?: types.Getcanwithdrawunfreezeamount1BodyParam): Promise> { + return this.core.fetch('/wallet/getcanwithdrawunfreezeamount', 'post', body); + } + + /** + * In Stake2.0, query the amount of delegatable resources share of the specified resource + * type for an address, unit is sun. + * + * @summary GetCanDelegatedMaxSize + * @throws FetchError<400, types.GetcandelegatedmaxsizeResponse400> 400 + */ + getcandelegatedmaxsize(body?: types.GetcandelegatedmaxsizeBodyParam): Promise> { + return this.core.fetch('/wallet/getcandelegatedmaxsize', 'post', body); + } + + /** + * In Stake2.0, query the detail of resource share delegated from fromAddress to toAddress + * + * @summary GetDelegatedResourceV2 + * @throws FetchError<400, types.Getdelegatedresourcev2Response400> 400 + */ + getdelegatedresourcev2(body?: types.Getdelegatedresourcev2BodyParam): Promise> { + return this.core.fetch('/wallet/getdelegatedresourcev2', 'post', body); + } + + /** + * In Stake2.0, query the resource delegation index by an account. Two lists will return, + * one is the list of addresses the account has delegated its resources(toAddress), and the + * other is the list of addresses that have delegated resources to the + * account(fromAddress). + * + * @summary GetDelegatedResourceAccountIndexV2 + * @throws FetchError<400, types.Getdelegatedresourceaccountindexv21Response400> 400 + */ + getdelegatedresourceaccountindexv21(body?: types.Getdelegatedresourceaccountindexv21BodyParam): Promise> { + return this.core.fetch('/wallet/getdelegatedresourceaccountindexv2', 'post', body); + } + + /** + * Query a token by name, returns token info. + * + * @summary GetAssetIssueByName + */ + getassetissuebynameCopy(body?: types.GetassetissuebynameCopyBodyParam): Promise> { + return this.core.fetch('/wallet/getassetissuebyname', 'post', body); + } + + /** + * Query the list of all the TRC10 tokens by a name. + * + * @summary GetAssetIssueListByName + */ + getassetissuelistbynameCopy(body?: types.GetassetissuelistbynameCopyBodyParam): Promise> { + return this.core.fetch('/wallet/getassetissuelistbyname', 'post', body); + } + + /** + * Cancel unstakings, all unstaked funds still in the waiting period will be re-staked, all + * unstaked funds that exceeded the 14-day waiting period will be automatically withdrawn + * to the owner’s account + * + * @summary CancelAllUnfreezeV2 + * @throws FetchError<400, types.Cancelallunfreezev2Response400> 400 + */ + cancelallunfreezev2(body?: types.Cancelallunfreezev2BodyParam): Promise> { + return this.core.fetch('/wallet/cancelallunfreezev2', 'post', body); + } + + /** + * Query the account address list which signed the transaction. + * + * @summary GetApprovedList + */ + httpGetapprovedlist(body: types.HttpGetapprovedlistBodyParam): Promise> { + return this.core.fetch('/wallet/getapprovedlist', 'post', body); + } +} + +const createSDK = (() => { return new SDK(); })() +; + +export default createSDK; + +export type { AccountCreateaccountBodyParam, AccountCreateaccountResponse200, AccountCreateaccountResponse400, AccountGetaccountBodyParam, AccountGetaccountResponse200, AccountGetaccountResponse400, AccountResourcesFreezebalanceBodyParam, AccountResourcesFreezebalanceResponse200, AccountResourcesFreezebalanceResponse400, AccountResourcesUnfreezebalanceBodyParam, AccountResourcesUnfreezebalanceResponse200, AccountResourcesUnfreezebalanceResponse400, AccountpermissionupdateBodyParam, AccountpermissionupdateResponse200, AccountpermissionupdateResponse400, BroadcasthexBodyParam, BroadcasthexResponse200, BroadcasthexResponse400, BroadcasttransactionBodyParam, BroadcasttransactionResponse200, Cancelallunfreezev2BodyParam, Cancelallunfreezev2Response200, Cancelallunfreezev2Response400, ClearabiBodyParam, ClearabiResponse200, ClearabiResponse400, CreateaddressBodyParam, CreateaddressResponse200, CreateaddressResponse400, CreateassetissueBodyParam, CreateshieldedcontractparametersBodyParam, CreateshieldedcontractparametersResponse200, CreateshieldedcontractparametersResponse400, CreatespendauthsigBodyParam, CreatespendauthsigResponse200, CreatespendauthsigResponse400, CreatetransactionBodyParam, CreatetransactionResponse200, CreatetransactionResponse400, CreatewitnessBodyParam, CreatewitnessResponse200, CreatewitnessResponse400, Delegateresource1BodyParam, Delegateresource1Response200, Delegateresource1Response400, EasytransferBodyParam, EasytransferResponse200, EasytransferResponse400, EasytransferassetBodyParam, EasytransferassetResponse200, EasytransferassetResponse400, EasytransferassetbyprivateBodyParam, EasytransferassetbyprivateResponse200, EasytransferassetbyprivateResponse400, EasytransferbyprivateBodyParam, EasytransferbyprivateResponse200, EasytransferbyprivateResponse400, EstimateenergyBodyParam, EstimateenergyResponse200, EstimateenergyResponse400, ExchangecreateBodyParam, ExchangecreateResponse200, ExchangecreateResponse400, ExchangeinjectBodyParam, ExchangeinjectResponse200, ExchangeinjectResponse400, ExchangetransactionBodyParam, ExchangetransactionResponse200, ExchangetransactionResponse400, ExchangewithdrawBodyParam, ExchangewithdrawResponse200, ExchangewithdrawResponse400, Freezebalancev21BodyParam, Freezebalancev21Response200, Freezebalancev21Response400, GenerateaddressResponse200, GenerateaddressResponse400, GetaccountbalanceBodyParam, GetaccountbalanceResponse200, GetaccountbalanceResponse400, GetaccountnetBodyParam, GetaccountnetResponse200, GetaccountresourceBodyParam, GetaccountresourceResponse200, GetaccountresourceResponse400, GetakfromaskBodyParam, GetakfromaskResponse200, GetakfromaskResponse400, GetassetissuebyaccountBodyParam, GetassetissuebyidBodyParam, GetassetissuebynameCopyBodyParam, GetassetissuelistbynameCopyBodyParam, Getavailableunfreezecount1BodyParam, Getavailableunfreezecount1Response200, Getavailableunfreezecount1Response400, GetbandwidthpricesResponse200, Getblock1BodyParam, Getblock1Response200, GetblockbalanceBodyParam, GetblockbalanceResponse200, GetblockbalanceResponse400, GetblockbyidBodyParam, GetblockbyidResponse200, GetblockbylimitnextBodyParam, GetblockbylimitnextResponse200, GetblockbylimitnextResponse400, GetburntrxResponse200, GetcandelegatedmaxsizeBodyParam, GetcandelegatedmaxsizeResponse200, GetcandelegatedmaxsizeResponse400, Getcanwithdrawunfreezeamount1BodyParam, Getcanwithdrawunfreezeamount1Response200, Getcanwithdrawunfreezeamount1Response400, GetcontractinfoBodyParam, GetcontractinfoResponse200, GetcontractinfoResponse400, GetdelegatedresourceBodyParam, GetdelegatedresourceResponse200, GetdelegatedresourceResponse400, GetdelegatedresourceaccountindexBodyParam, GetdelegatedresourceaccountindexResponse200, GetdelegatedresourceaccountindexResponse400, Getdelegatedresourceaccountindexv21BodyParam, Getdelegatedresourceaccountindexv21Response200, Getdelegatedresourceaccountindexv21Response400, Getdelegatedresourcev2BodyParam, Getdelegatedresourcev2Response200, Getdelegatedresourcev2Response400, GetdiversifierResponse200, GetdiversifierResponse400, GetexpandedspendingkeyBodyParam, GetexpandedspendingkeyResponse200, GetexpandedspendingkeyResponse400, GetincomingviewingkeyBodyParam, GetincomingviewingkeyResponse200, GetincomingviewingkeyResponse400, GetnewshieldedaddressResponse200, GetnewshieldedaddressResponse400, GetnextmaintenancetimeResponse200, GetnextmaintenancetimeResponse400, GetnkfromnskBodyParam, GetnkfromnskResponse200, GetnkfromnskResponse400, GetpaginatedassetissuelistBodyParam, GetpendingsizeResponse200, GetpendingsizeResponse400, GetproposalbyidBodyParam, GetproposalbyidResponse200, GetproposalbyidResponse400, GetspendingkeyResponse200, GetspendingkeyResponse400, GettransactionfrompendingBodyParam, GettransactionfrompendingResponse200, GettransactionfrompendingResponse400, GettransactioninfobyblocknumBodyParam, GettransactioninfobyblocknumResponse200, GettransactioninfobyblocknumResponse400, GettransactioninfobyidBodyParam, GettransactioninfobyidResponse200, GettransactionlistfrompendingResponse200, GettransactionlistfrompendingResponse400, GettransactionsignBodyParam, GettransactionsignResponse200, GettransactionsignResponse400, Gettriggerinputforshieldedtrc20ContractResponse200, Gettriggerinputforshieldedtrc20ContractResponse400, GetzenpaymentaddressBodyParam, GetzenpaymentaddressResponse200, GetzenpaymentaddressResponse400, HttpGetapprovedlistBodyParam, HttpGetapprovedlistResponse200, Isshieldedtrc20ContractnotespentBodyParam, Isshieldedtrc20ContractnotespentResponse200, Isshieldedtrc20ContractnotespentResponse400, ParticipateassetissueBodyParam, ParticipateassetissueResponse200, ParticipateassetissueResponse400, ProposalapproveBodyParam, ProposalapproveResponse200, ProposalapproveResponse400, ProposalcreateBodyParam, ProposalcreateResponse200, ProposalcreateResponse400, ProposaldeleteBodyParam, ProposaldeleteResponse200, ProposaldeleteResponse400, Scanshieldedtrc20NotesbyivkBodyParam, Scanshieldedtrc20NotesbyivkResponse200, Scanshieldedtrc20NotesbyivkResponse400, Scanshieldedtrc20NotesbyovkBodyParam, Scanshieldedtrc20NotesbyovkResponse200, Scanshieldedtrc20NotesbyovkResponse400, TransferassetBodyParam, TransferassetResponse200, TransferassetResponse400, TriggerconstantcontractBodyParam, TriggerconstantcontractResponse200, TriggerconstantcontractResponse400, TriggersmartcontractBodyParam, TriggersmartcontractResponse200, TriggersmartcontractResponse400, Undelegateresource1BodyParam, Undelegateresource1Response200, Undelegateresource1Response400, UnfreezeassetBodyParam, UnfreezeassetResponse200, UnfreezeassetResponse400, Unfreezebalancev21BodyParam, Unfreezebalancev21Response200, Unfreezebalancev21Response400, UpdateaccountBodyParam, UpdateaccountResponse200, UpdateaccountResponse400, UpdatewitnessBodyParam, UpdatewitnessResponse200, ValidateaddressBodyParam, ValidateaddressResponse200, ValidateaddressResponse400, VotewitnessaccountBodyParam, VotewitnessaccountResponse200, VotewitnessaccountResponse400, WalletDeploycontractBodyParam, WalletDeploycontractResponse200, WalletDeploycontractResponse400, WalletGetblockbylatestnumBodyParam, WalletGetblockbylatestnumResponse200, WalletGetblockbylatestnumResponse400, WalletGetblockbynumBodyParam, WalletGetblockbynumResponse200, WalletGetbrokerageBodyParam, WalletGetbrokerageResponse200, WalletGetbrokerageResponse400, WalletGetchainparametersResponse200, WalletGetchainparametersResponse400, WalletGetcontractBodyParam, WalletGetcontractResponse200, WalletGetcontractResponse400, WalletGetexchangebyidBodyParam, WalletGetexchangebyidResponse200, WalletGetexchangebyidResponse400, WalletGetnodeinfoResponse200, WalletGetnodeinfoResponse400, WalletGetnowblockResponse200, WalletGetrewardBodyParam, WalletGetrewardResponse200, WalletGetrewardResponse400, WalletGettransactionbyidBodyParam, WalletGettransactionbyidResponse200, WalletListexchangesMetadataParam, WalletListexchangesResponse200, WalletListexchangesResponse400, WalletListnodesResponse200, WalletListnodesResponse400, WalletListproposalsResponse200, WalletListproposalsResponse400, WalletUpdateassetBodyParam, WalletUpdateassetResponse200, WalletUpdateassetResponse400, WalletUpdatebrokerageBodyParam, WalletUpdatebrokerageResponse200, WalletUpdatebrokerageResponse400, WalletUpdateenergylimitBodyParam, WalletUpdateenergylimitResponse200, WalletUpdateenergylimitResponse400, WalletUpdatesettingBodyParam, WalletUpdatesettingResponse200, WalletUpdatesettingResponse400, WithdrawbalanceBodyParam, WithdrawbalanceResponse200, WithdrawbalanceResponse400, WithdrawexpireunfreezeBodyParam, WithdrawexpireunfreezeResponse200, WithdrawexpireunfreezeResponse400 } from './types'; diff --git a/.api/apis/tron/openapi.json b/.api/apis/tron/openapi.json new file mode 100644 index 0000000..73fa13b --- /dev/null +++ b/.api/apis/tron/openapi.json @@ -0,0 +1,7605 @@ +{ + "openapi": "3.1.0", + "info": { + "title": "Full Node HTTP API", + "version": "unknown" + }, + "servers": [ + { + "url": "https://api.shasta.trongrid.io" + } + ], + "components": { + "securitySchemes": {} + }, + "security": [ + {} + ], + "paths": { + "/wallet/getnowblock": { + "post": { + "summary": "GetNowBlock", + "description": "Query the latest block information", + "operationId": "wallet-getnowblock", + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Example API Call Output": { + "value": "// Example API Call Output\n\n{ \n \"blockID\":\"00000000000080f82038aa301eda07eb27906589dd849d1c9ba5d84af94cf038\",\n \"block_header\":{ \n \"raw_data\":{ \n \"number\":33016,\n \"txTrieRoot\":\"0000000000000000000000000000000000000000000000000000000000000000\",\n \"witness_address\":\"41928c9af0651632157ef27a2cf17ca72c575a4d21\",\n \"parentHash\":\"00000000000080f7b502cb572e67f3ad8e75558c0cd64f54cc7c0697f08000a0\",\n \"version\":3,\n \"timestamp\":1536713433000\n },\n \"witness_signature\":\"917101db1a7f9252fa3fef139acc07153876b0a4a46e57a235f9b1578bb6da2f12d1a4bc09350e3c5b609353876ffdd581bd903ce31304e42066e363853cf77d00\"\n }\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "blockID": { + "type": "string", + "example": "00000000000080f82038aa301eda07eb27906589dd849d1c9ba5d84af94cf038" + }, + "block_header": { + "type": "object", + "properties": { + "raw_data": { + "type": "object", + "properties": { + "number": { + "type": "integer", + "example": 33016, + "default": 0 + }, + "txTrieRoot": { + "type": "string", + "example": "0000000000000000000000000000000000000000000000000000000000000000" + }, + "witness_address": { + "type": "string", + "example": "41928c9af0651632157ef27a2cf17ca72c575a4d21" + }, + "parentHash": { + "type": "string", + "example": "00000000000080f7b502cb572e67f3ad8e75558c0cd64f54cc7c0697f08000a0" + }, + "version": { + "type": "integer", + "example": 3, + "default": 0 + }, + "timestamp": { + "type": "integer", + "example": 1536713433000, + "default": 0 + } + } + }, + "witness_signature": { + "type": "string", + "example": "917101db1a7f9252fa3fef139acc07153876b0a4a46e57a235f9b1578bb6da2f12d1a4bc09350e3c5b609353876ffdd581bd903ce31304e42066e363853cf77d00" + } + } + } + } + } + } + } + } + }, + "deprecated": false, + "security": [], + "x-readme": { + "code-samples": [ + { + "language": "javascript", + "code": "$.post('https://api.trongrid.io/wallet/getnowblock', function(data) {\n console.log(data);\n});" + } + ], + "samples-languages": [ + "javascript" + ] + } + } + }, + "/wallet/createtransaction": { + "post": { + "summary": "CreateTransaction", + "description": "Create a TRX transfer transaction. If to_address does not exist, then create the account on the blockchain.", + "operationId": "createtransaction", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner_address is the transfer address, converted to a hex string", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "to_address": { + "type": "string", + "description": "To_address is the transfer address, converted to a hex string", + "default": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1" + }, + "amount": { + "type": "integer", + "description": "Amount is the transfer amount,the unit is sun", + "default": 1000, + "format": "int64" + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional.Whehter the address is in base58 format.", + "default": true + }, + "extra_data": { + "type": "string", + "description": "Optional, totes on the transaction, HEX format" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [], + "x-readme": { + "code-samples": [ + { + "language": "javascript", + "code": "$.post('https://api.trongrid.io/wallet/createtransaction', {\"to_address\": \"41e9d79cc47518930bc322d9bf7cddd260a0260a8d\", \"owner_address\": \"41D1E7A6BC354106CB410E65FF8B181C600FF14292\", \"amount\": 1000 }, function(data) {\n console.log(data);\n});", + "name": "JavaScript" + } + ], + "samples-languages": [ + "javascript" + ] + } + } + }, + "/wallet/getblockbynum": { + "post": { + "summary": "GetBlockByNum", + "description": "Returns the Block Object corresponding to the 'Block Height' specified (number of blocks preceding it).", + "operationId": "wallet-getblockbynum", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "num": { + "type": "integer", + "description": "num is the block height", + "default": 200, + "format": "int32" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Example API Call Output": { + "value": "// Example API Call Output\n\n{ \n \"blockID\":\"00000000000000c82a54a3bbdc956e1ddebc903f29b8daf28505b56f55a3f87d\",\n \"block_header\":{ \n \"raw_data\":{ \n \"number\":200,\n \"txTrieRoot\":\"0000000000000000000000000000000000000000000000000000000000000000\",\n \"witness_address\":\"411661f25387370c9cd3a9a5d97e60ca90f4844e7e\",\n \"parentHash\":\"00000000000000c7c8f27726916dfddca3c1c3481eb01da8a08938263674cea4\",\n \"timestamp\":1529892138000\n },\n \"witness_signature\":\"691e9116963b54ef7eb07692266319b029217e4d4ae8e8cb97e341617460f3822eff149c690aac6f2e0ad27d0af4fa8824d113d7a71c091245f778438ca4bde801\"\n }\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "blockID": { + "type": "string", + "example": "00000000000000c82a54a3bbdc956e1ddebc903f29b8daf28505b56f55a3f87d" + }, + "block_header": { + "type": "object", + "properties": { + "raw_data": { + "type": "object", + "properties": { + "number": { + "type": "integer", + "example": 200, + "default": 0 + }, + "txTrieRoot": { + "type": "string", + "example": "0000000000000000000000000000000000000000000000000000000000000000" + }, + "witness_address": { + "type": "string", + "example": "411661f25387370c9cd3a9a5d97e60ca90f4844e7e" + }, + "parentHash": { + "type": "string", + "example": "00000000000000c7c8f27726916dfddca3c1c3481eb01da8a08938263674cea4" + }, + "timestamp": { + "type": "integer", + "example": 1529892138000, + "default": 0 + } + } + }, + "witness_signature": { + "type": "string", + "example": "691e9116963b54ef7eb07692266319b029217e4d4ae8e8cb97e341617460f3822eff149c690aac6f2e0ad27d0af4fa8824d113d7a71c091245f778438ca4bde801" + } + } + } + } + } + } + } + } + }, + "deprecated": false, + "security": [], + "x-readme": { + "code-samples": [ + { + "language": "javascript", + "code": "$.post('https://api.trongrid.io/wallet/getblockbynum', {\"num\" : 100}, function(data) {\n console.log(data);\n});", + "name": "JavaScript" + } + ], + "samples-languages": [ + "javascript" + ] + } + } + }, + "/wallet/easytransfer": { + "post": { + "summary": "EasyTransfer", + "description": "This interface has been deprecated.", + "operationId": "easytransfer", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "passPhrase", + "toAddress", + "amount" + ], + "properties": { + "passPhrase": { + "type": "string", + "description": "Password converted from ascii to hex" + }, + "toAddress": { + "type": "string", + "description": "Recipient address converted into a hex string" + }, + "amount": { + "type": "integer", + "description": "Amount of TRX to transfer expressed in SUN.", + "format": "int32" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/updateaccount": { + "post": { + "summary": "UpdateAccount", + "description": "Modify account name", + "operationId": "updateaccount", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner_address is the account address to be modified, converted to a hex string", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "account_name": { + "type": "string", + "description": "Account_name is the name of the account, converted to a hex string", + "default": "0x7570646174654e616d6531353330383933343635353139" + }, + "visible": { + "type": "boolean", + "description": "Optional,whether the address is in base58 format", + "default": true + }, + "Permission_id": { + "type": "integer", + "description": "Optional,for multi-signature use", + "format": "int32" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/generateaddress": { + "get": { + "summary": "GenerateAddress", + "description": "Generate a random private key and address. This API has been deprecated, please generate address offline.", + "operationId": "generateaddress", + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\"privateKey\":\"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\",\"address\":\"TDp4x8kCJ6aHz8wnqZgkaVQAm2ajH1og3L\",\"hexAddress\":\"412a260a110bc7b03f19c40a0bd04ff2c5dcb57594\"}" + } + }, + "schema": { + "type": "object", + "properties": { + "privateKey": { + "type": "string", + "example": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08" + }, + "address": { + "type": "string", + "example": "TDp4x8kCJ6aHz8wnqZgkaVQAm2ajH1og3L" + }, + "hexAddress": { + "type": "string", + "example": "412a260a110bc7b03f19c40a0bd04ff2c5dcb57594" + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/createaddress": { + "post": { + "summary": "CreateAddress", + "description": "Creates an address from the specified password string (not the private key).This interface has been deprecated, please generate address offline.", + "operationId": "createaddress", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string", + "description": "value is the password, converted from ascii to hex. i.e. the pass phrase.", + "default": "7465737470617373776f7264" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\n \"base58checkAddress\":\"T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb\",\n \"value\":\"T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb\"\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "base58checkAddress": { + "type": "string", + "example": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb" + }, + "value": { + "type": "string", + "example": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb" + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/listwitnesses": { + "get": { + "summary": "ListWitnesses", + "description": "List all Super Representatives.", + "operationId": "listwitnesses", + "deprecated": false, + "security": [] + } + }, + "/wallet/updateasset": { + "post": { + "summary": "UpdateAsset", + "description": "Update basic TRC10 token information.", + "operationId": "wallet-updateasset", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "The issuers address of the token, default hexString", + "default": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1" + }, + "description": { + "type": "string", + "description": "The description of token, default hexString" + }, + "url": { + "type": "string", + "description": "The token's website url, default hexString" + }, + "new_limit": { + "type": "integer", + "description": "Each token holder's free bandwidth", + "format": "int32" + }, + "new_public_limit": { + "type": "integer", + "description": "The total free bandwidth of the token", + "format": "int32" + }, + "permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getassetissuebyaccount": { + "post": { + "summary": "GetAssetIssueByAccount", + "description": "Query the TRC10 token information issued by an account.", + "operationId": "getassetissuebyaccount", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "Address is the Token Issuer account address", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "visible": { + "type": "boolean", + "description": "Optional. Defaults to false. Whether addresses are in base58check format.", + "default": true + } + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getaccountnet": { + "post": { + "summary": "GetAccountNet", + "description": "Query bandwidth information.", + "operationId": "getaccountnet", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "Account address, converted to a hex string.", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "visible": { + "type": "boolean", + "description": "Optional,whether the address is in base58 format", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Example API Call Output": { + "value": "" + } + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/listnodes": { + "get": { + "summary": "ListNodes", + "description": "Query the list of nodes connected to the API node", + "operationId": "wallet-listnodes", + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [], + "x-readme": { + "code-samples": [ + { + "language": "javascript", + "code": "$.post('https://api.trongrid.io/wallet/listnodes', function(data) {\n console.log(data);\n});", + "name": "JavaScript" + } + ], + "samples-languages": [ + "javascript" + ] + } + } + }, + "/wallet/getblockbyid": { + "post": { + "summary": "GetBlockById", + "description": "Query block by ID(block hash).", + "operationId": "getblockbyid", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "Block ID", + "default": "00000000000f424013e51b18e0782a32fa079ddafdb2f4c343468cf8896dc887" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Example API Call Output": { + "value": "// Example API Call Output\n\n{ \n \"blockID\":\"00000000000000c82a54a3bbdc956e1ddebc903f29b8daf28505b56f55a3f87d\",\n \"block_header\":{ \n \"raw_data\":{ \n \"number\":200,\n \"txTrieRoot\":\"0000000000000000000000000000000000000000000000000000000000000000\",\n \"witness_address\":\"411661f25387370c9cd3a9a5d97e60ca90f4844e7e\",\n \"parentHash\":\"00000000000000c7c8f27726916dfddca3c1c3481eb01da8a08938263674cea4\",\n \"timestamp\":1529892138000\n },\n \"witness_signature\":\"691e9116963b54ef7eb07692266319b029217e4d4ae8e8cb97e341617460f3822eff149c690aac6f2e0ad27d0af4fa8824d113d7a71c091245f778438ca4bde801\"\n }\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "blockID": { + "type": "string", + "example": "00000000000000c82a54a3bbdc956e1ddebc903f29b8daf28505b56f55a3f87d" + }, + "block_header": { + "type": "object", + "properties": { + "raw_data": { + "type": "object", + "properties": { + "number": { + "type": "integer", + "example": 200, + "default": 0 + }, + "txTrieRoot": { + "type": "string", + "example": "0000000000000000000000000000000000000000000000000000000000000000" + }, + "witness_address": { + "type": "string", + "example": "411661f25387370c9cd3a9a5d97e60ca90f4844e7e" + }, + "parentHash": { + "type": "string", + "example": "00000000000000c7c8f27726916dfddca3c1c3481eb01da8a08938263674cea4" + }, + "timestamp": { + "type": "integer", + "example": 1529892138000, + "default": 0 + } + } + }, + "witness_signature": { + "type": "string", + "example": "691e9116963b54ef7eb07692266319b029217e4d4ae8e8cb97e341617460f3822eff149c690aac6f2e0ad27d0af4fa8824d113d7a71c091245f778438ca4bde801" + } + } + } + } + } + } + } + } + }, + "deprecated": false, + "security": [], + "x-readme": { + "code-samples": [ + { + "language": "javascript", + "code": "$.post('https://api.trongrid.io/wallet/getblockbyid', {\"value\": \"0000000000038809c59ee8409a3b6c051e369ef1096603c7ee723c16e2376c73\"}, function(data) {\n console.log(data);\n});", + "name": "JavaScript" + } + ], + "samples-languages": [ + "javascript" + ] + } + } + }, + "/wallet/getassetissuebyid": { + "post": { + "summary": "GetAssetIssueById", + "description": "Query a token by token id. Returns the token object, which contains the token name.", + "operationId": "getassetissuebyid", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "integer", + "description": "The ID of the TRC10 token.", + "default": 1000001, + "format": "int32" + } + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/gettransactionbyid": { + "post": { + "summary": "GetTransactionById", + "description": "Query transaction information by transaction id.", + "operationId": "wallet-gettransactionbyid", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "Transaction ID", + "default": "7c2d4206c03a883dd9066d620335dc1be272a8dc733cfa3f6d10308faa37facc" + }, + "visible": { + "type": "boolean", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Example API Call Response": { + "value": "// Example API Call Response\n\n{ \n \"ret\":[ \n { \n \"contractRet\":\"SUCCESS\"\n }\n ],\n \"signature\":[ \n \"ffbf691a89d95f6ad8175611c7d334c8159b95ff9c1e83872e7670103b185e85faf0a394b23d99581385d38038ab5c4684759c864a5621009f6e95da0a5feab501\"\n ],\n \"txID\":\"d0807adb3c5412aa150787b944c96ee898c997debdc27e2f6a643c771edb5933\",\n \"raw_data\":{ \n \"contract\":[ \n { \n \"parameter\":{ \n \"value\":{ \n \"amount\":16,\n \"asset_name\":\"54726f6e696373\",\n \"owner_address\":\"414a5fe0179f2dd9c900194e63d661863cd0ade7b0\",\n \"to_address\":\"41718de6b323652d1257437ace160c4f4198aae4e1\"\n },\n \"type_url\":\"type.googleapis.com/protocol.TransferAssetContract\"\n },\n \"type\":\"TransferAssetContract\"\n }\n ],\n \"ref_block_bytes\":\"6bdd\",\n \"ref_block_hash\":\"1616edaf3a57fe19\",\n \"expiration\":1546455678000,\n \"timestamp\":1546455620175\n }\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "ret": { + "type": "array", + "items": { + "type": "object", + "properties": { + "contractRet": { + "type": "string", + "example": "SUCCESS" + } + } + } + }, + "signature": { + "type": "array", + "items": { + "type": "string", + "example": "ffbf691a89d95f6ad8175611c7d334c8159b95ff9c1e83872e7670103b185e85faf0a394b23d99581385d38038ab5c4684759c864a5621009f6e95da0a5feab501" + } + }, + "txID": { + "type": "string", + "example": "d0807adb3c5412aa150787b944c96ee898c997debdc27e2f6a643c771edb5933" + }, + "raw_data": { + "type": "object", + "properties": { + "contract": { + "type": "array", + "items": { + "type": "object", + "properties": { + "parameter": { + "type": "object", + "properties": { + "value": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "example": 16, + "default": 0 + }, + "asset_name": { + "type": "string", + "example": "54726f6e696373" + }, + "owner_address": { + "type": "string", + "example": "414a5fe0179f2dd9c900194e63d661863cd0ade7b0" + }, + "to_address": { + "type": "string", + "example": "41718de6b323652d1257437ace160c4f4198aae4e1" + } + } + }, + "type_url": { + "type": "string", + "example": "type.googleapis.com/protocol.TransferAssetContract" + } + } + }, + "type": { + "type": "string", + "example": "TransferAssetContract" + } + } + } + }, + "ref_block_bytes": { + "type": "string", + "example": "6bdd" + }, + "ref_block_hash": { + "type": "string", + "example": "1616edaf3a57fe19" + }, + "expiration": { + "type": "integer", + "example": 1546455678000, + "default": 0 + }, + "timestamp": { + "type": "integer", + "example": 1546455620175, + "default": 0 + } + } + } + } + } + } + } + } + }, + "deprecated": false, + "security": [], + "x-readme": { + "code-samples": [ + { + "language": "javascript", + "code": "$.post('https://api.trongrid.io/wallet/gettransactionbyid', {\"value\": \"d5ec749ecc2a615399d8a6c864ea4c74ff9f523c2be0e341ac9be5d47d7c2d62\"}, function(data) {\n console.log(data);\n});", + "name": "JavaScript" + } + ], + "samples-languages": [ + "javascript" + ] + } + } + }, + "/wallet/getassetissuelist": { + "get": { + "summary": "GetAssetIssueList", + "description": "Query the list of all the TRC10 tokens.", + "operationId": "getassetissuelist", + "deprecated": false, + "security": [] + } + }, + "/wallet/getblockbylimitnext": { + "post": { + "summary": "GetBlockByLimitNext", + "description": "Returns the list of Block Objects included in the 'Block Height' range specified.", + "operationId": "getblockbylimitnext", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "startNum": { + "type": "integer", + "description": "Starting block height, including this block.", + "default": 1, + "format": "int32" + }, + "endNum": { + "type": "integer", + "description": "Ending block height, excluding that block.", + "default": 5, + "format": "int32" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [], + "x-readme": { + "code-samples": [ + { + "language": "javascript", + "code": "$.post('https://api.trongrid.io/wallet/getblockbylimitnext', {\"startNum\":1, \"endNum\":2}, function(data) {\n console.log(data);\n});", + "name": "JavaScript" + } + ], + "samples-languages": [ + "javascript" + ] + } + } + }, + "/wallet/getblockbylatestnum": { + "post": { + "summary": "GetBlockByLatestNum", + "description": "Returns a list of block objects.", + "operationId": "wallet-getblockbylatestnum", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "num": { + "type": "integer", + "description": "The number of blocks to query", + "default": 5, + "format": "int32" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [], + "x-readme": { + "code-samples": [ + { + "language": "javascript", + "code": "$.post('https://api.trongrid.io/wallet/getblockbylatestnum', {\"num\":5}, function(data) {\n console.log(data);\n});", + "name": "JavaScript" + } + ], + "samples-languages": [ + "javascript" + ] + } + } + }, + "/wallet/getnextmaintenancetime": { + "get": { + "summary": "GetNextMaintenanceTime", + "description": "Returns the timestamp of the next voting time in milliseconds.", + "operationId": "getnextmaintenancetime", + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\"num\": 1591099200000}" + } + }, + "schema": { + "type": "object", + "properties": { + "num": { + "type": "integer", + "example": 1591099200000, + "default": 0 + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/exchangeinject": { + "post": { + "summary": "ExchangeInject", + "description": "Injects capital into the transaction. The purpose of injecting capital into the trading pair is to prevent price fluctuation from affecting the transaction.", + "operationId": "exchangeinject", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Transaction to the creator's address in hexString format", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "exchange_id": { + "type": "integer", + "description": "Transaction Pair ID", + "default": 12, + "format": "int32" + }, + "token_id": { + "type": "string", + "description": "Token ID; usually is the token name, which needs to be in hexString format.", + "default": "31303030343837" + }, + "quant": { + "type": "integer", + "description": "Number of capital injection tokens.", + "default": 100, + "format": "int32" + }, + "permission_id": { + "type": "integer", + "description": "Optional,for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional,whether the address is in base58 format", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/validateaddress": { + "post": { + "summary": "ValidateAddress", + "description": "Validates address, returns either true or false.", + "operationId": "validateaddress", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "address" + ], + "properties": { + "address": { + "type": "string", + "description": "Address should be in base58checksum, hexString, or base64 format.", + "default": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs" + }, + "visible": { + "type": "boolean", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\"result\":true}" + } + }, + "schema": { + "type": "object", + "properties": { + "result": { + "type": "boolean", + "example": true, + "default": true + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getpaginatedassetissuelist": { + "post": { + "summary": "GetPaginatedAssetIssueList", + "description": "Query the list of all the tokens by pagination.Returns a list of Tokens that succeed the Token located at offset.", + "operationId": "getpaginatedassetissuelist", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "offset": { + "type": "integer", + "description": "The index of the start token", + "default": 0, + "format": "int32" + }, + "limit": { + "type": "integer", + "description": "The amount of tokens per page", + "default": 20, + "format": "int32" + } + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/exchangewithdraw": { + "post": { + "summary": "ExchangeWithdraw", + "description": "Withdraws the transaction pair.", + "operationId": "exchangewithdraw", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Address of the transaction to the creator, in hexString format", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "exchange_id": { + "type": "integer", + "description": "Transaction Pair ID", + "default": 12, + "format": "int32" + }, + "token_id": { + "type": "string", + "description": "Token ID in hexString format; Usually is the token name.", + "default": "31303030343837" + }, + "quant": { + "type": "integer", + "description": "Number of tokens divested.", + "default": 100, + "format": "int32" + }, + "permission_id": { + "type": "string", + "description": "Optional,for multi-signature use" + }, + "visible": { + "type": "boolean", + "description": "Optional,whether the address is in base58 format", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getexchangebyid": { + "post": { + "summary": "GetExchangeById", + "description": "Query exchange pair based on id", + "operationId": "wallet-getexchangebyid", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Transaction Pair ID", + "default": 1, + "format": "int32" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/exchangetransaction": { + "post": { + "summary": "ExchangeTransaction", + "description": "Participate the transaction of exchange pair", + "operationId": "exchangetransaction", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Trader's wallet address, in hex string format. This wallet contains the tokens you wish to sell, in order to gain the other token.", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "exchange_id": { + "type": "integer", + "description": "Transaction Pair ID", + "default": 12, + "format": "int32" + }, + "token_id": { + "type": "string", + "description": "ID of the sold token, in hexString format. For example, if you wanted to trade TRX for another token, then the TRX id of \"5f\" goes in this parameter.", + "default": "31303030343837" + }, + "quant": { + "type": "integer", + "description": "Quantity of the token being sold. If TRX being sold, need to express in units of SUN.", + "default": 100, + "format": "int32" + }, + "expected": { + "type": "integer", + "description": "Expected quantity of the token being purchased.", + "default": 10, + "format": "int32" + }, + "permission_id": { + "type": "integer", + "description": "Optional,for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional,whether the address is in base58 format", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "" + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/listexchanges": { + "get": { + "summary": "ListExchanges", + "description": "List all exchange pairs.", + "operationId": "wallet-listexchanges", + "parameters": [ + { + "name": "visible", + "in": "query", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/proposalcreate": { + "post": { + "summary": "ProposalCreate", + "description": "Creates a proposal transaction.", + "operationId": "proposalcreate", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Address of the transaction creator", + "default": "TCuM8e98jmPwT1RU2jW7dekUC5HpXbGzFG" + }, + "parameters": { + "type": "string", + "description": "Proposal parameters", + "default": "[{\"key\": 0,\"value\": 100000},{\"key\": 1,\"value\": 2}]", + "format": "json" + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional.Whehter the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [], + "x-readme": { + "code-samples": [ + { + "language": "javascript", + "code": "$.post('https://api.trongrid.io/wallet/proposalcreate', {\"owner_address\":\"419844F7600E018FD0D710E2145351D607B3316CE9\",\"parameters\":[{\"key\": 0,\"value\": 100000},{\"key\": 1,\"value\": 2}]}, function(data) {\n console.log(data);\n});" + } + ], + "samples-languages": [ + "javascript" + ] + } + } + }, + "/wallet/getproposalbyid": { + "post": { + "summary": "GetProposalById", + "description": "Queries proposal based on ID and returns proposal details.", + "operationId": "getproposalbyid", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "default": 1, + "format": "int32" + }, + "visible": { + "type": "boolean" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [], + "x-readme": { + "code-samples": [ + { + "language": "javascript", + "code": "$.post('https://api.trongrid.io/wallet/getproposalbyid', {\"id\":1}, function(data) {\n console.log(data);\n});" + } + ], + "samples-languages": [ + "javascript" + ] + } + } + }, + "/wallet/listproposals": { + "get": { + "summary": "ListProposals", + "description": "List all proposals.", + "operationId": "wallet-listproposals", + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "x-readme": { + "code-samples": [ + { + "language": "javascript", + "code": "$.post('https://api.trongrid.io/wallet/listproposals', function(data) {\n console.log(data);\n});" + } + ], + "samples-languages": [ + "javascript" + ] + } + } + }, + "/wallet/proposalapprove": { + "post": { + "summary": "ProposalApprove", + "description": "Approves proposed transaction.", + "operationId": "proposalapprove", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Approver address", + "default": "TUeTYVYJFfmBj3hVyopAZB97yc432Aay4N" + }, + "proposal_id": { + "type": "integer", + "description": "Proposal ID", + "default": 89, + "format": "int32" + }, + "is_add_approval": { + "type": "boolean", + "description": "Approved", + "default": true + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional.Whehter the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "x-readme": { + "code-samples": [ + { + "language": "javascript", + "code": "$.post('https://api.trongrid.io/wallet/proposalapprove', {\"owner_address\" : \"419844F7600E018FD0D710E2145351D607B3316CE9\", \"proposal_id\":1, \"is_add_approval\":true}, function(data) {\n console.log(data);\n});" + } + ], + "samples-languages": [ + "javascript" + ] + } + } + }, + "/wallet/proposaldelete": { + "post": { + "summary": "ProposalDelete", + "description": "Deletes Proposal Transaction.", + "operationId": "proposaldelete", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Address of proposal owner.", + "default": "TCuM8e98jmPwT1RU2jW7dekUC5HpXbGzFG" + }, + "proposal_id": { + "type": "integer", + "description": "Proposal ID", + "default": 89, + "format": "int32" + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional.Whehter the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "x-readme": { + "code-samples": [ + { + "language": "javascript", + "code": "$.post('https://api.trongrid.io/wallet/proposaldelete', {\"owner_address\" : \"419844F7600E018FD0D710E2145351D607B3316CE9\", \"proposal_id\":1}, function(data) {\n console.log(data);\n});" + } + ], + "samples-languages": [ + "javascript" + ] + } + } + }, + "/wallet/getaccount": { + "post": { + "summary": "GetAccount", + "description": "Query information about an account, including TRX balance, TRC-10 balances, stake information and vote information and permissions etc.", + "operationId": "account-getaccount", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "address should be converted to a hex string", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "visible": { + "type": "boolean", + "description": "Optional,whether the address is in base58 format", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/gettransactionsign": { + "post": { + "summary": "GetTransactionSign", + "description": "Sign the transaction, it is recommended to sign transactions offline.", + "operationId": "gettransactionsign", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "transaction", + "privateKey" + ], + "properties": { + "transaction": { + "type": "object", + "description": "Transaction is a contract created by http api", + "properties": { + "txID": { + "type": "string" + }, + "visible": { + "type": "boolean" + }, + "raw_data": { + "type": "string", + "default": "{\"contract\":[{\"parameter\":{\"value\":{\"amount\":1000,\"owner_address\":\"41608f8da72479edc7dd921e4c30bb7e7cddbe722e\",\"to_address\":\"41e9d79cc47518930bc322d9bf7cddd260a0260a8d\"},\"type_url\":\"type.googleapis.com/protocol.TransferContract\"},\"type\":\"TransferContract\"}],\"ref_block_bytes\":\"5e4b\",\"ref_block_hash\":\"47c9dc89341b300d\",\"expiration\":1591089627000,\"timestamp\":1591089567635}", + "format": "json" + }, + "raw_data_hex": { + "type": "string", + "default": "0a025e4b220847c9dc89341b300d40f8fed3a2a72e5a66080112620a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412310a1541608f8da72479edc7dd921e4c30bb7e7cddbe722e121541e9d79cc47518930bc322d9bf7cddd260a0260a8d18e8077093afd0a2a72e" + }, + "signature": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "privateKey": { + "type": "string", + "description": "privateKey is the user private key", + "default": "your private key" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/broadcasttransaction": { + "post": { + "summary": "BroadcastTransaction", + "description": "Broadcast the signed transaction", + "operationId": "broadcasttransaction", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "RAW_BODY" + ], + "properties": { + "RAW_BODY": { + "type": "object", + "properties": { + "txID": { + "type": "string" + }, + "visible": { + "type": "boolean" + }, + "raw_data": { + "type": "string", + "default": "{\"contract\":[{\"parameter\":{\"value\":{\"amount\":1000,\"owner_address\":\"41608f8da72479edc7dd921e4c30bb7e7cddbe722e\",\"to_address\":\"41e9d79cc47518930bc322d9bf7cddd260a0260a8d\"},\"type_url\":\"type.googleapis.com/protocol.TransferContract\"},\"type\":\"TransferContract\"}],\"ref_block_bytes\":\"5e4b\",\"ref_block_hash\":\"47c9dc89341b300d\",\"expiration\":1591089627000,\"timestamp\":1591089567635}", + "format": "json" + }, + "raw_data_hex": { + "type": "string", + "default": "0a025e4b220847c9dc89341b300d40f8fed3a2a72e5a66080112620a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412310a1541608f8da72479edc7dd921e4c30bb7e7cddbe722e121541e9d79cc47518930bc322d9bf7cddd260a0260a8d18e8077093afd0a2a72e" + }, + "signature": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Example API Call Response": { + "value": "// Example Output\n\n{\"result\": true}" + } + }, + "schema": { + "type": "object", + "properties": { + "result": { + "type": "boolean", + "example": true, + "default": true + } + } + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/createwitness": { + "post": { + "summary": "CreateWitness", + "description": "Apply to become a witness.", + "operationId": "createwitness", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address, default hexString", + "default": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1" + }, + "url": { + "type": "string", + "description": "Website url, default hexString", + "default": "007570646174654e616d6531353330363038383733343633" + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/votewitnessaccount": { + "post": { + "summary": "VoteWitnessAccount", + "description": "Vote for witnesses", + "operationId": "votewitnessaccount", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address, default hexString", + "default": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1" + }, + "votes": { + "type": "array", + "description": "'vote_address' stands for the address of the witness you want to vote, default hexString, 'vote_count' stands for the number of votes you want to vote", + "items": { + "properties": { + "vote_address": { + "type": "string", + "default": "41e552f6487585c2b58bc2c9bb4492bc1f17132cd0" + }, + "vote_count": { + "type": "integer", + "default": 0, + "format": "int32" + } + }, + "type": "object" + } + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/createaccount": { + "post": { + "summary": "CreateAccount", + "description": "Activate an account. Uses an already activated account to activate a new account. Users have to generate an account locally with wallet-cli or others SDKs like TronWeb, and then use this API to activate the account generated, or just simply transfer TRX to it.", + "operationId": "account-createaccount", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner_address is an activated account,converted to a hex String.If the owner_address has enough bandwidth obtained by freezing TRX, then creating an account will only consume bandwidth , otherwise, 0.1 TRX will be burned to pay for bandwidth, and at the same time, 1 TRX will be required to be created.", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "account_address": { + "type": "string", + "description": "account_address is the address of the new account, converted to a hex string, this address needs to be calculated in advance", + "default": "TFgY1uN8buRxAtV2r6Zy5sG3ACko6pJT1y" + }, + "visible": { + "type": "boolean", + "description": "Optional,whether the address is in base58 format", + "default": true + }, + "permission_id": { + "type": "integer", + "description": "Optional,for multi-signature use", + "format": "int32" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/transferasset": { + "post": { + "summary": "TransferAsset", + "description": "Transfer TRC10 token.", + "operationId": "transferasset", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address, default hexString", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "to_address": { + "type": "string", + "description": "receiving address, default hexString", + "default": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1" + }, + "asset_name": { + "type": "string", + "description": "Token id, default hexString", + "default": "31303030303031" + }, + "amount": { + "type": "integer", + "default": null, + "format": "int64" + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + }, + "extra_data": { + "type": "string", + "description": "Optional, totes on the transaction, HEX format" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/participateassetissue": { + "post": { + "summary": "ParticipateAssetIssue", + "description": "Participate in an asset issue.", + "operationId": "participateassetissue", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "to_address": { + "type": "string", + "default": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1" + }, + "owner_address": { + "type": "string", + "description": "The participant address, default hexString", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "amount": { + "type": "integer", + "description": "The number of trx participating in token issuance", + "format": "int64" + }, + "asset_name": { + "type": "string", + "description": "Token id, default hexString", + "default": "1000001031303030303031" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/createassetissue": { + "post": { + "summary": "CreateAssetIssue", + "description": "Issue a TRC10 token.", + "operationId": "createassetissue", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address, default hexString", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "name": { + "type": "string", + "description": "Token name, default hexString", + "default": "0x6173736574497373756531353330383934333132313538" + }, + "abbr": { + "type": "string", + "default": "0x6162627231353330383934333132313538" + }, + "total_supply": { + "type": "integer", + "description": "Token total supply", + "format": "int64" + }, + "trx_num": { + "type": "integer", + "description": "Define the price by the ratio of trx_num/num(The unit of 'trx_num' is SUN)", + "format": "int64" + }, + "num": { + "type": "integer", + "description": "Define the price by the ratio of trx_num/num", + "format": "int64" + }, + "start_time": { + "type": "integer", + "description": "ICO start time", + "format": "int64" + }, + "end_time": { + "type": "integer", + "description": "ICO end time", + "format": "int64" + }, + "description": { + "type": "string", + "description": "Token description, default hexString", + "default": "0x4578616d706c654465736372697074696f6e" + }, + "url": { + "type": "string", + "description": "Token official website url, default hexString", + "default": "0x7777772e6578616d706c652e636f6d" + }, + "free_asset_net_limit": { + "type": "integer", + "description": "Token free asset net limit", + "format": "int64" + }, + "public_free_asset_net_limit": { + "type": "integer", + "description": "Token public free asset net limit", + "format": "int64" + }, + "frozen_supply": { + "type": "string", + "description": "Token frozen supply", + "default": "{\"frozen_amount\":1,\"frozen_days\":2}", + "format": "json" + }, + "precision": { + "type": "integer", + "format": "int32" + }, + "visible": { + "type": "boolean", + "default": true + } + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/freezebalance": { + "post": { + "summary": "FreezeBalance", + "description": "This interface has been deprecated, please use [FreezeBalanceV2](/reference/freezebalancev2-1) to stake TRX to obtain resources.", + "operationId": "account-resources-freezebalance", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address, default hexString", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "frozen_balance": { + "type": "integer", + "description": "TRX stake amount, the unit is sun", + "default": 10000000, + "format": "int64" + }, + "frozen_duration": { + "type": "integer", + "description": "Lock-up duration for this stake, now the value can only be 3 days. It is not allowed to unstake within 3 days after the stake. You can unstake TRX after the 3 lock-up days", + "default": 3, + "format": "int32" + }, + "resource": { + "type": "string", + "description": "TRX stake type, 'BANDWIDTH' or 'ENERGY'", + "default": "ENERGY" + }, + "receiver_address": { + "type": "string", + "description": "Optional,the address that will receive the resource, default hexString" + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional. Defaults to false. Whether addresses are in base58check format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/unfreezebalance": { + "post": { + "summary": "UnfreezeBalance", + "description": "Unstake the TRX staked during Stake1.0, release the obtained bandwidth or energy and TP. This operation will cause automatically cancel all votes.", + "operationId": "account-resources-unfreezebalance", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address, default hexString", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "resource": { + "type": "string", + "description": "Stake TRX for 'BANDWIDTH' or 'ENERGY'", + "default": "BANDWIDTH" + }, + "receiver_address": { + "type": "string", + "description": "Optional,the address that will lose the resource, default hexString" + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/unfreezeasset": { + "post": { + "summary": "UnfreezeAsset", + "description": "Unstake a token that has passed the minimum freeze duration.", + "operationId": "unfreezeasset", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address, default hexString", + "default": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1" + }, + "permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/deploycontract": { + "post": { + "summary": "DeployContract", + "description": "Deploys a contract. Returns TransactionExtention, which contains an unsigned transaction.", + "operationId": "wallet-deploycontract", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "abi": { + "type": "string", + "description": "Smart Contract's Application Binary Interface", + "default": "\"[{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"key\\\",\\\"type\\\":\\\"uint256\\\"},{\\\"name\\\":\\\"value\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"name\\\":\\\"set\\\",\\\"outputs\\\":[],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"key\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"name\\\":\\\"get\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"value\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"}]\"", + "format": "json" + }, + "bytecode": { + "type": "string", + "description": "The compiled contract's identifier, used to interact with the Virtual Machine.", + "default": "608060405234801561001057600080fd5b5060de8061001f6000396000f30060806040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631ab06ee58114604d5780639507d39a146067575b600080fd5b348015605857600080fd5b506065600435602435608e565b005b348015607257600080fd5b50607c60043560a0565b60408051918252519081900360200190f35b60009182526020829052604090912055565b600090815260208190526040902054905600a165627a7a72305820fdfe832221d60dd582b4526afa20518b98c2e1cb0054653053a844cf265b25040029" + }, + "fee_limit": { + "type": "integer", + "description": "Maximum TRX consumption, measured in SUN (1 TRX = 1,000,000 SUN).", + "format": "int32" + }, + "parameter": { + "type": "string", + "description": "Parameter passed to the constructor of the contract. Call the virtual machine format of the parameter [1, 2], use the js tool provided by remix, convert the parameter array [1, 2] called by the contract caller into the parameter format required by the virtual machine." + }, + "origin_energy_limit": { + "type": "integer", + "description": "The max energy which will be consumed by the owner in the process of execution or creation of the contract, is an integer which should be greater than 0.", + "format": "int32" + }, + "owner_address": { + "type": "string", + "description": "Contract owner address, converted to a hex string", + "default": "TJmmqjb1DK9TTZbQXzRQ2AuA94z4gKAPFh" + }, + "name": { + "type": "string", + "description": "Contract name", + "default": "SomeContract" + }, + "call_value": { + "type": "integer", + "description": "Amount of TRX transferred with this transaction, measured in SUN (1TRX = 1,000,000 SUN)", + "format": "int32" + }, + "consume_user_resource_percent": { + "type": "integer", + "description": "The same as User Pay Ratio. The percentage of resources specified for users who use this contract. This field accepts integers between [0, 100]. If it is 0, it means the user does not consume resources until the developer resources are exhausted. However, it is strongly recommended to set the value between 1 and 99 (inclusive). This is prevent the contract developer from potential malicious infinite loop time out attacks.", + "format": "int32" + }, + "Permission_id": { + "type": "integer", + "description": "Optional. Whehter the address is in base58 format.", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional. Whehter the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/withdrawbalance": { + "post": { + "summary": "WithdrawBalance", + "description": "Super Representative or user withdraw rewards, usable every 24 hours.\nSuper representatives can withdraw the balance from the account allowance into the account balance,\nUsers can claim the voting reward from the SRs and deposit into his account balance.", + "operationId": "withdrawbalance", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Super representative or user address", + "default": "TGj1Ej1qRzL9feLTLhjwgxXF4Ct6GTWg2U" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/easytransferbyprivate": { + "post": { + "summary": "EasyTransferByPrivate", + "description": "This interface has been deprecated.", + "operationId": "easytransferbyprivate", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "privateKey", + "toAddress", + "amount" + ], + "properties": { + "privateKey": { + "type": "string", + "description": "passPhrase is the private key in hex string format" + }, + "toAddress": { + "type": "string", + "description": "toAddress is the recipient address, converted into a hex string;" + }, + "amount": { + "type": "integer", + "description": "amount is the amount of TRX to transfer in SUN.", + "format": "int32" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getcontract": { + "post": { + "summary": "GetContract", + "description": "Queries a contract's information from the blockchain, including the bytecode of the contract, ABI, configuration parameters, etc.", + "operationId": "wallet-getcontract", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "Contract address, converted to a hex string.", + "default": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs" + }, + "visible": { + "type": "boolean", + "description": "Optional, is address in visible format(base58check) or hex?", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/triggersmartcontract": { + "post": { + "summary": "TriggerSmartContract", + "description": "Returns TransactionExtention, which contains the unsigned Transaction", + "operationId": "triggersmartcontract", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "owner_address", + "contract_address", + "fee_limit" + ], + "properties": { + "owner_address": { + "type": "string", + "description": "Address that triggers the contract, converted to a hex string.", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "contract_address": { + "type": "string", + "description": "Contract address, converted to a hex string", + "default": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs" + }, + "function_selector": { + "type": "string", + "description": "Function call, must not be left blank", + "default": "transfer(address,uint256)" + }, + "parameter": { + "type": "string", + "description": "Parameter encoding needs to be in accordance with the ABI rules, the rules are more complicated, users can use the ethers library to encode,For details, please refer to the document-Guide-Smart Contract-Best Practice-Parameter Encoding and Decoding.", + "default": "00000000000000000000004115208EF33A926919ED270E2FA61367B2DA3753DA0000000000000000000000000000000000000000000000000000000000000032" + }, + "data": { + "type": "string", + "description": "The data for interacting with smart contracts, including the contract function and parameters. You can choose to use this field, or you can choose to use function_selector and parameter for contract interaction. When both of data and function_selector exist, function_selector is preferred" + }, + "fee_limit": { + "type": "integer", + "description": "Maximum TRX consumption, measured in SUN (1 TRX = 1,000,000 SUN).", + "default": 1000000000, + "format": "int32" + }, + "call_value": { + "type": "integer", + "description": "Amount of TRX transferred with this transaction, measured in SUN (1 TRX = 1,000,000 SUN).", + "default": 0, + "format": "int64" + }, + "call_token_value": { + "type": "integer", + "description": "Amount of TRC10 token transferred with this transaction", + "format": "int64" + }, + "token_id": { + "type": "integer", + "description": "TRC10 token id", + "format": "int64" + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional. Whehter the address is in base58check format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/exchangecreate": { + "post": { + "summary": "ExchangeCreate", + "description": "Creates a trading pair.", + "operationId": "exchangecreate", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "first_token_id": { + "type": "string", + "description": "The first token's id, default hexString", + "default": "31303030343837" + }, + "first_token_balance": { + "type": "integer", + "description": "The first token's balance", + "default": 100, + "format": "int32" + }, + "second_token_id": { + "type": "string", + "description": "The second token's id, default hexString", + "default": "31303030303031" + }, + "second_token_balance": { + "type": "integer", + "description": "The second token's balance", + "default": 100, + "format": "int32" + }, + "permission_id": { + "type": "integer", + "description": "Optional,for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional,whether the address is in base58 format", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getnodeinfo": { + "get": { + "summary": "GetNodeInfo", + "description": "Query Node Information. Returns information about current state of node.", + "operationId": "wallet-getnodeinfo", + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/updatesetting": { + "post": { + "summary": "UpdateSetting", + "description": "Update the consume_user_resource_percent parameter of a smart contract", + "operationId": "wallet-updatesetting", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "owner_address", + "contract_address", + "consume_user_resource_percent" + ], + "properties": { + "owner_address": { + "type": "string", + "description": "Transaction creator address, in hex string format.", + "default": "TSNEe5Tf4rnc9zPMNXfaTF5fZfHDDH8oyW" + }, + "contract_address": { + "type": "string", + "description": "The address of the contract to be modified, in hex string format.", + "default": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs" + }, + "consume_user_resource_percent": { + "type": "integer", + "description": "Consume user's resource percentage. It should be an integer between [0, 100]. if 0, means it does not consume user's resource until the developer's resource has been used up", + "default": 10, + "format": "int32" + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional.Whehter the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/updateenergylimit": { + "post": { + "summary": "UpdateEnergyLimit", + "description": "Update the origin_energy_limit parameter of a smart contract", + "operationId": "wallet-updateenergylimit", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Transaction creator address, in hex string format.", + "default": "TSNEe5Tf4rnc9zPMNXfaTF5fZfHDDH8oyW" + }, + "contract_address": { + "type": "string", + "description": "The address of the contract to be modified, in hex string format.", + "default": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs" + }, + "origin_energy_limit": { + "type": "integer", + "description": "The maximum energy the creator sets. The greatest amount of energy the creator consumes during contract execution or creation process.", + "default": 100000000, + "format": "int32" + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional.Whehter the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/easytransferasset": { + "post": { + "summary": "EasyTransferAsset", + "description": "This interface has been deprecated.", + "operationId": "easytransferasset", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "passPhrase": { + "type": "string", + "description": "Password, default hexString" + }, + "toAddress": { + "type": "string", + "description": "To address, default hexString", + "default": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1" + }, + "assetId": { + "type": "string", + "description": "Token id", + "default": "1000001" + }, + "amount": { + "type": "integer", + "description": "Transfer token amount,the unit is the smallest unit.", + "format": "int64" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/getdelegatedresourceaccountindex": { + "post": { + "summary": "GetDelegatedResourceAccountIndex", + "description": "Query the resource delegation by an account during stake1.0 phase. i.e. list all addresses that have delegated resources to an account.", + "operationId": "getdelegatedresourceaccountindex", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "Address, default hexString", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/easytransferassetbyprivate": { + "post": { + "summary": "EasyTransferAssetByPrivate", + "description": "This interface has been deprecated.", + "operationId": "easytransferassetbyprivate", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "privateKey": { + "type": "string", + "description": "Private key, default hexString", + "default": "D95611A9AF2A2A45359106222ED1AFED48853D9A44DEFF8DC7913F5CBA727366" + }, + "toAddress": { + "type": "string", + "description": "To address, default hexString", + "default": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1" + }, + "assetId": { + "type": "string", + "description": "Token id", + "default": "1000001" + }, + "amount": { + "type": "integer", + "description": "Token transfer amount", + "format": "int64" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getdelegatedresource": { + "post": { + "summary": "GetDelegatedResource", + "description": "Returns all resources delegations during stake1.0 phase from an account to another account. The fromAddress can be retrieved from the GetDelegatedResourceAccountIndex API.", + "operationId": "getdelegatedresource", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "fromAddress", + "toAddress" + ], + "properties": { + "fromAddress": { + "type": "string", + "description": "Energy from address, default hexString", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "toAddress": { + "type": "string", + "description": "Energy delegation information", + "default": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/gettransactioninfobyid": { + "post": { + "summary": "GetTransactionInfoById", + "description": "Query the transaction fee, block height by transaction id", + "operationId": "gettransactioninfobyid", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "Transaction hash, i.e. transaction id.", + "default": "7c2d4206c03a883dd9066d620335dc1be272a8dc733cfa3f6d10308faa37facc" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\n \"id\": \"d0807adb3c5412aa150787b944c96ee898c997debdc27e2f6a643c771edb5933\",\n \"fee\": 2790,\n \"blockNumber\": 5467102,\n \"blockTimeStamp\": 1546455621000,\n \"contractResult\": [\n \"\"\n ],\n \"receipt\": {\n \"net_fee\": 2790\n }\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "d0807adb3c5412aa150787b944c96ee898c997debdc27e2f6a643c771edb5933" + }, + "fee": { + "type": "integer", + "example": 2790, + "default": 0 + }, + "blockNumber": { + "type": "integer", + "example": 5467102, + "default": 0 + }, + "blockTimeStamp": { + "type": "integer", + "example": 1546455621000, + "default": 0 + }, + "contractResult": { + "type": "array", + "items": { + "type": "string", + "example": "" + } + }, + "receipt": { + "type": "object", + "properties": { + "net_fee": { + "type": "integer", + "example": 2790, + "default": 0 + } + } + } + } + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/updatewitness": { + "post": { + "summary": "UpdateWitness", + "description": "Edit the URL of the witness's official website.", + "operationId": "updatewitness", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address, default hexString", + "default": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1" + }, + "update_url": { + "type": "string", + "description": "Website url, default hexString" + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/clearabi": { + "post": { + "summary": "ClearAbi", + "description": "To clear the ABI info of a smart contract.", + "operationId": "clearabi", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address of the smart contract. If visible=true, use base58check format, otherwise use hex format.", + "default": "TSNEe5Tf4rnc9zPMNXfaTF5fZfHDDH8oyW" + }, + "contract_address": { + "type": "string", + "description": "Smart contract address. If visible=true, use base58check format, otherwise use hex format.", + "default": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs" + }, + "visible": { + "type": "boolean", + "description": "Optional. Defaults to false. Whether addresses are in base58check format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/triggerconstantcontract": { + "post": { + "summary": "TriggerConstantContract", + "description": "Invoke the readonly function (modified by the `view` or `pure` modifier) of a contract for contract data query; or Invoke the non-readonly function of a contract for predicting whether the transaction can be successfully executed and estimating the energy consumption; or estimate the energy consumption of contract deployment", + "operationId": "triggerconstantcontract", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address that triggers the contract. If visible=true, use base58check format, otherwise use hex format. For constant call you can use the all-zero address.", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "contract_address": { + "type": "string", + "description": "Smart contract address. If visible=true, use base58check format, otherwise use hex format.", + "default": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs" + }, + "function_selector": { + "type": "string", + "description": "Function call, must not be left blank.", + "default": "balanceOf(address)" + }, + "parameter": { + "type": "string", + "description": "Parameter encoding needs to be in accordance with the ABI rules, the rules are more complicated, users can use the ethers library to encode,For details, please refer to the document-Guide-Smart Contract-Best Practice-Parameter Encoding and Decoding.", + "default": "000000000000000000000000a614f803b6fd780986a42c78ec9c7f77e6ded13c" + }, + "data": { + "type": "string", + "description": "The bytecode of the contract or the data for interacting with smart contracts, including the contract function and parameters. You can choose to use this field, or you can choose to use function_selector and parameter for contract interaction. When both of data and function_selector exist, function_selector is preferred" + }, + "call_value": { + "type": "integer", + "description": "Amount of TRX transferred to the contract with this transaction, the unit is sun. This field may be used when estimating energy consumption.", + "format": "int64" + }, + "call_token_value": { + "type": "integer", + "description": "Amount of TRC10 token transferred with this transaction", + "format": "int64" + }, + "token_id": { + "type": "integer", + "description": "TRC10 token id", + "format": "int64" + }, + "visible": { + "type": "boolean", + "description": "Optional.Whehter the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\n \"result\":{\"result\":true},\n // constant_result should be parsed by corresponding ABI\n \"constant_result\":[\"000000000000000000000000000000000000000000000000000009a1832a6361\"]\n // ...\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "result": { + "type": "object", + "properties": { + "result": { + "type": "boolean", + "example": true, + "default": true + } + } + }, + "constant_result": { + "type": "array", + "items": { + "type": "string", + "example": "000000000000000000000000000000000000000000000000000009a1832a6361" + } + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/updateBrokerage": { + "post": { + "summary": "UpdateBrokerage", + "description": "Update the witness's brokerage setting.", + "operationId": "wallet-updatebrokerage", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Super representative's account address", + "default": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1" + }, + "brokerage": { + "type": "integer", + "description": "The brokerage ratio of the super representative, for example: 20 means 20%, 100 means 100%", + "default": 20, + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getBrokerage": { + "post": { + "summary": "GetBrokerage", + "description": "Get SR brokerage ratio", + "operationId": "wallet-getbrokerage", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "Super representative's account address", + "default": "TGj1Ej1qRzL9feLTLhjwgxXF4Ct6GTWg2U" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getReward": { + "post": { + "summary": "GetReward", + "description": "Get the rewards that a witness or a user has not yet withdrawn.", + "operationId": "wallet-getreward", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "User's address", + "default": "TGj1Ej1qRzL9feLTLhjwgxXF4Ct6GTWg2U" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getaccountresource": { + "post": { + "summary": "GetAccountResource", + "description": "Query the resource information of an account(bandwidth,energy,etc)", + "operationId": "getaccountresource", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "Address", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "visible": { + "type": "boolean", + "description": "Optional,whether the address is in base58 format", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getchainparameters": { + "get": { + "summary": "GetChainParameters", + "description": "All parameters that the blockchain committee can set", + "operationId": "wallet-getchainparameters", + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/broadcasthex": { + "post": { + "summary": "BroadcastHex", + "description": "Broadcast the protobuf encoded transaction hex string after sign", + "operationId": "broadcasthex", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "transaction" + ], + "properties": { + "transaction": { + "type": "string", + "description": "Transaction hex after sign", + "default": "0A8A010A0202DB2208C89D4811359A28004098A4E0A6B52D5A730802126F0A32747970652E676F6F676C65617069732E636F6D2F70726F746F636F6C2E5472616E736665724173736574436F6E747261637412390A07313030303030311215415A523B449890854C8FC460AB602DF9F31FE4293F1A15416B0580DA195542DDABE288FEC436C7D5AF769D24206412418BF3F2E492ED443607910EA9EF0A7EF79728DAAAAC0EE2BA6CB87DA38366DF9AC4ADE54B2912C1DEB0EE6666B86A07A6C7DF68F1F9DA171EEE6A370B3CA9CBBB00" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/gettransactioninfobyblocknum": { + "post": { + "summary": "GetTransactionInfoByBlockNum", + "description": "", + "operationId": "gettransactioninfobyblocknum", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "num": { + "type": "integer", + "description": "Block height", + "default": 1000000, + "format": "int32" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/accountpermissionupdate": { + "post": { + "summary": "AccountPermissionUpdate", + "description": "Update the account's permission.", + "operationId": "accountpermissionupdate", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "owner address", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "actives": { + "type": "string", + "description": "active permission", + "default": "[{ \t\"type\": 2, \t\"permission_name\": \"active0\", \t\"threshold\": 2, \t\"operations\": \"7fff1fc0037e0000000000000000000000000000000000000000000000000000\", \t\"keys\": [{ \t\t\"address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \t\t\"weight\": 1 \t}, { \t\t\"address\": \"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1\", \t\t\"weight\": 1 \t}] }]", + "format": "json" + }, + "owner": { + "type": "string", + "description": "owner permission", + "default": "{ \t\"type\": 0, \t\"permission_name\": \"owner\", \t\"threshold\":1, \t\"keys\": [{ \t\t\"address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \t\t\"weight\": 1 \t}] }", + "format": "json" + }, + "witness": { + "type": "string", + "description": "witness permission", + "format": "json" + }, + "visible": { + "type": "boolean", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/getspendingkey": { + "get": { + "summary": "GetSpendingKey", + "description": "Note:To ensure security, Trongrid has disabled this interface service, please use the service provided by the local node.", + "operationId": "getspendingkey", + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\n \"value\": \"09124de6a534661ef1cfad0335832445a3b83c08e885881a68a52cf4dc735e68\"\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "value": { + "type": "string", + "example": "09124de6a534661ef1cfad0335832445a3b83c08e885881a68a52cf4dc735e68" + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/getexpandedspendingkey": { + "post": { + "summary": "GetExpandedSpendingKey", + "description": "Note:To ensure security, Trongrid has disabled this interface service, please use the service provided by the local node.", + "operationId": "getexpandedspendingkey", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "HEX of Spending Key", + "default": "09124de6a534661ef1cfad0335832445a3b83c08e885881a68a52cf4dc735e68" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\n \"ask\": \"23d11537676610c287ffcd1bc33d650df37fc90d13bb65356fbc9045cfb91705\",\n \"nsk\": \"da6542f57f6f730cb31b401b9ca8660589d8a765405c6d6f48fd392ac5360b0a\",\n \"ovk\": \"e73f5383fdeacbb282db951afba01e607916c8106b316c55544fac84b2efbdc4\"\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "ask": { + "type": "string", + "example": "23d11537676610c287ffcd1bc33d650df37fc90d13bb65356fbc9045cfb91705" + }, + "nsk": { + "type": "string", + "example": "da6542f57f6f730cb31b401b9ca8660589d8a765405c6d6f48fd392ac5360b0a" + }, + "ovk": { + "type": "string", + "example": "e73f5383fdeacbb282db951afba01e607916c8106b316c55544fac84b2efbdc4" + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/getzenpaymentaddress": { + "post": { + "summary": "GetZenPaymentAddress", + "description": "", + "operationId": "getzenpaymentaddress", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ivk", + "d" + ], + "properties": { + "ivk": { + "type": "string" + }, + "d": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\n \"pkD\": \"297198e7d4a024a3b5ef9b68ed15e7463fbf03e6aa590aa551d7bd0c1cfa828d\",\n \"payment_address\": \"ztron1m445gx74mjuuyhkyru5hrx886jszfga4a7dk3mg4uarrl0cru649jz4928tm6rqul2pg645hqv5\"\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "pkD": { + "type": "string", + "example": "297198e7d4a024a3b5ef9b68ed15e7463fbf03e6aa590aa551d7bd0c1cfa828d" + }, + "payment_address": { + "type": "string", + "example": "ztron1m445gx74mjuuyhkyru5hrx886jszfga4a7dk3mg4uarrl0cru649jz4928tm6rqul2pg645hqv5" + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/getakfromask": { + "post": { + "summary": "GetAkFromAsk", + "description": "Note:To ensure security, Trongrid has disabled this interface service, please use the service provided by the local node.", + "operationId": "getakfromask", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string", + "default": "23d11537676610c287ffcd1bc33d650df37fc90d13bb65356fbc9045cfb91705" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\n \"value\": \"72b041a8006a02a995c24f5b8531a62008c8c54a1979622dc4ea6f54a506732d\"\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "value": { + "type": "string", + "example": "72b041a8006a02a995c24f5b8531a62008c8c54a1979622dc4ea6f54a506732d" + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/getnkfromnsk": { + "post": { + "summary": "GetNkFromNsk", + "description": "", + "operationId": "getnkfromnsk", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string", + "default": "da6542f57f6f730cb31b401b9ca8660589d8a765405c6d6f48fd392ac5360b0a" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\n \"value\": \"2d817ea2e005e174d9291d0bd0605e11cb79e3f5855780521bc300d0636a58df\"\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "value": { + "type": "string", + "example": "2d817ea2e005e174d9291d0bd0605e11cb79e3f5855780521bc300d0636a58df" + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/getnewshieldedaddress": { + "get": { + "summary": "GetNewShieldedAddress", + "description": "Note:To ensure security, Trongrid has disabled this interface service, please use the service provided by the local node.", + "operationId": "getnewshieldedaddress", + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\n \"sk\": \"0bfc211444fa877ba546ffb3a64e8b7aa58dd7bdd23a7b22166e9da923add0e6\",\n \"ask\": \"264c351e5a154555b1ec7822f9bfc0faa5ced9d75b17ed1552699a20b18f7c07\",\n \"nsk\": \"ebd5bf67f68de464c8a109b389ff4d07912ebe11e8b3d034cf505b35c8d5a907\",\n \"ovk\": \"a8fa18b039e2cd8aeb04c8cf299b2bbc43cb5ab4dd67eec8884e3563223e5908\",\n \"ak\": \"0648c0b20fa5eab112d466f75b174d1c142bf35318d2f50d63c6b3b343c8c397\",\n \"nk\": \"a45852bb5b9e933266d5fab6062baa456b149329f8081817ef868923f87b2f9d\",\n \"ivk\": \"9c3eacfe786e67c6f3b567cfcf129dcfdc21347ce6f192cc3ca1e994df570c05\",\n \"d\": \"987adf3b4d8da446327d17\",\n \"pkD\": \"09f3c4576c4f836b3472a6a5738606866607a6ffcd1c7299e31ec40455b1cd35\",\n \"payment_address\": \"ztron1npad7w6d3kjyvvnazuyl83zhd38cx6e5w2n22uuxq6rxvpaxllx3cu5euv0vgpz4k8xn2rsga28\"\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "sk": { + "type": "string", + "example": "0bfc211444fa877ba546ffb3a64e8b7aa58dd7bdd23a7b22166e9da923add0e6" + }, + "ask": { + "type": "string", + "example": "264c351e5a154555b1ec7822f9bfc0faa5ced9d75b17ed1552699a20b18f7c07" + }, + "nsk": { + "type": "string", + "example": "ebd5bf67f68de464c8a109b389ff4d07912ebe11e8b3d034cf505b35c8d5a907" + }, + "ovk": { + "type": "string", + "example": "a8fa18b039e2cd8aeb04c8cf299b2bbc43cb5ab4dd67eec8884e3563223e5908" + }, + "ak": { + "type": "string", + "example": "0648c0b20fa5eab112d466f75b174d1c142bf35318d2f50d63c6b3b343c8c397" + }, + "nk": { + "type": "string", + "example": "a45852bb5b9e933266d5fab6062baa456b149329f8081817ef868923f87b2f9d" + }, + "ivk": { + "type": "string", + "example": "9c3eacfe786e67c6f3b567cfcf129dcfdc21347ce6f192cc3ca1e994df570c05" + }, + "d": { + "type": "string", + "example": "987adf3b4d8da446327d17" + }, + "pkD": { + "type": "string", + "example": "09f3c4576c4f836b3472a6a5738606866607a6ffcd1c7299e31ec40455b1cd35" + }, + "payment_address": { + "type": "string", + "example": "ztron1npad7w6d3kjyvvnazuyl83zhd38cx6e5w2n22uuxq6rxvpaxllx3cu5euv0vgpz4k8xn2rsga28" + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/createshieldedcontractparameters": { + "post": { + "summary": "CreateShieldedContractParameters", + "description": "Note:To ensure security, Trongrid has disabled this interface service, please use the service provided by the local node.", + "operationId": "createshieldedcontractparameters", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "shielded_TRC20_contract_address" + ], + "properties": { + "ovk": { + "type": "string" + }, + "from_amount": { + "type": "string" + }, + "to_amount": { + "type": "string" + }, + "transparent_to_address": { + "type": "string" + }, + "shielded_TRC20_contract_address": { + "type": "string" + }, + "shielded_receives": { + "type": "object", + "properties": {} + }, + "shielded_spends": { + "type": "object", + "properties": {} + }, + "ask": { + "type": "string" + }, + "nsk": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/getdiversifier": { + "get": { + "summary": "GetDiversifier", + "description": "", + "operationId": "getdiversifier", + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\"d\": \"dd6b441bd5dcb9c25ec41f\"}" + } + }, + "schema": { + "type": "object", + "properties": { + "d": { + "type": "string", + "example": "dd6b441bd5dcb9c25ec41f" + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/getincomingviewingkey": { + "post": { + "summary": "GetIncomingViewingKey", + "description": "", + "operationId": "getincomingviewingkey", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ak", + "nk" + ], + "properties": { + "ak": { + "type": "string", + "default": "72b041a8006a02a995c24f5b8531a62008c8c54a1979622dc4ea6f54a506732d" + }, + "nk": { + "type": "string", + "default": "da6542f57f6f730cb31b401b9ca8660589d8a765405c6d6f48fd392ac5360b0a" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\n \"ivk\": \"6896b46a8355ae75896900ac617293d98e1b48fd885ed484a7cbddd566762705\"\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "ivk": { + "type": "string", + "example": "6896b46a8355ae75896900ac617293d98e1b48fd885ed484a7cbddd566762705" + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/createspendauthsig": { + "post": { + "summary": "CreateSpendAuthSig", + "description": "Note:To ensure security, Trongrid has disabled this interface service, please use the service provided by the local node.", + "operationId": "createspendauthsig", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ask", + "tx_hash", + "alpha" + ], + "properties": { + "ask": { + "type": "string" + }, + "tx_hash": { + "type": "string" + }, + "alpha": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\n \"value\": \"1947036add76206b9f9b03ffd9d9526c5547db955387798f15c5e7c911f41eadc23eee214e64be792a404b77c64335a675c3489ca63d0d471de484c3a606d002\"\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "value": { + "type": "string", + "example": "1947036add76206b9f9b03ffd9d9526c5547db955387798f15c5e7c911f41eadc23eee214e64be792a404b77c64335a675c3489ca63d0d471de484c3a606d002" + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/gettriggerinputforshieldedtrc20contract": { + "post": { + "summary": "GetTriggerInputForShieldedTrc20Contract", + "description": "", + "operationId": "gettriggerinputforshieldedtrc20contract", + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/isshieldedtrc20contractnotespent": { + "post": { + "summary": "IsShieldedTrc20ContractNoteSpent", + "description": "", + "operationId": "isshieldedtrc20contractnotespent", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "note", + "ak", + "nk", + "position", + "shielded_TRC20_contract_address" + ], + "properties": { + "note": { + "type": "object", + "properties": {} + }, + "ak": { + "type": "string" + }, + "nk": { + "type": "string" + }, + "position": { + "type": "integer", + "format": "int32" + }, + "shielded_TRC20_contract_address": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\"is_spent\": true}" + } + }, + "schema": { + "type": "object", + "properties": { + "is_spent": { + "type": "boolean", + "example": true, + "default": true + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/scanshieldedtrc20notesbyovk": { + "post": { + "summary": "ScanShieldedTrc20NotesByOvk", + "description": "Scan outgoing notes(spent).", + "operationId": "scanshieldedtrc20notesbyovk", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "start_block_index", + "end_block_index", + "shielded_TRC20_contract_address", + "ovk" + ], + "properties": { + "start_block_index": { + "type": "integer", + "format": "int32" + }, + "end_block_index": { + "type": "integer", + "format": "int32" + }, + "shielded_TRC20_contract_address": { + "type": "string" + }, + "ovk": { + "type": "string" + }, + "visible": { + "type": "boolean" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/scanshieldedtrc20notesbyivk": { + "post": { + "summary": "ScanShieldedTrc20NotesByIvk", + "description": "Scan outgoing notes.", + "operationId": "scanshieldedtrc20notesbyivk", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "start_block_index", + "end_block_index", + "shielded_TRC20_contract_address", + "ivk", + "ak", + "nk" + ], + "properties": { + "start_block_index": { + "type": "integer", + "format": "int32" + }, + "end_block_index": { + "type": "integer", + "format": "int32" + }, + "shielded_TRC20_contract_address": { + "type": "string" + }, + "ivk": { + "type": "string" + }, + "ak": { + "type": "string" + }, + "nk": { + "type": "string" + }, + "visible": { + "type": "boolean" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/gettransactionfrompending": { + "post": { + "summary": "GetTransactionFromPending", + "description": "Get transaction details from the pending pool", + "operationId": "gettransactionfrompending", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "string", + "default": "f34f1c799700a9d83b67fdcadd7be697010a8dbbcd520de4ac46a648e3e7ae3d" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\n \"ret\": [\n {\n \"contractRet\": \"SUCCESS\"\n }\n ],\n \"signature\": [\n \"693ad22a762a6228423f77cdb36440a3b93d7b1cbec7aa3822454e6146fb2af5075e541f298fcc8d68e51f3d0ae34e7b713e4f1582e70b0eba1b1436c848b15a1b\"\n ],\n \"txID\": \"f34f1c799700a9d83b67fdcadd7be697010a8dbbcd520de4ac46a648e3e7ae3d\",\n \"raw_data\": {\n \"contract\": [\n {\n \"parameter\": {\n \"value\": {\n \"amount\": 234000000,\n \"owner_address\": \"4192c47b086eae54ed142d75ce4806df751bac7551\",\n \"to_address\": \"411113df41d4f3b8b46acc40c266bee87eca42c73d\"\n },\n \"type_url\": \"type.googleapis.com/protocol.TransferContract\"\n },\n \"type\": \"TransferContract\"\n }\n ],\n \"ref_block_bytes\": \"6d64\",\n \"ref_block_hash\": \"f35991f9b546f69f\",\n \"expiration\": 1616394384000,\n \"timestamp\": 1616394325960\n },\n \"raw_data_hex\": \"0a026d642208f35991f9b546f69f4080e5f3c4852f5a68080112640a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412330a154192c47b086eae54ed142d75ce4806df751bac75511215411113df41d4f3b8b46acc40c266bee87eca42c73d18809dca6f70c89ff0c4852f\"\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "ret": { + "type": "array", + "items": { + "type": "object", + "properties": { + "contractRet": { + "type": "string", + "example": "SUCCESS" + } + } + } + }, + "signature": { + "type": "array", + "items": { + "type": "string", + "example": "693ad22a762a6228423f77cdb36440a3b93d7b1cbec7aa3822454e6146fb2af5075e541f298fcc8d68e51f3d0ae34e7b713e4f1582e70b0eba1b1436c848b15a1b" + } + }, + "txID": { + "type": "string", + "example": "f34f1c799700a9d83b67fdcadd7be697010a8dbbcd520de4ac46a648e3e7ae3d" + }, + "raw_data": { + "type": "object", + "properties": { + "contract": { + "type": "array", + "items": { + "type": "object", + "properties": { + "parameter": { + "type": "object", + "properties": { + "value": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "example": 234000000, + "default": 0 + }, + "owner_address": { + "type": "string", + "example": "4192c47b086eae54ed142d75ce4806df751bac7551" + }, + "to_address": { + "type": "string", + "example": "411113df41d4f3b8b46acc40c266bee87eca42c73d" + } + } + }, + "type_url": { + "type": "string", + "example": "type.googleapis.com/protocol.TransferContract" + } + } + }, + "type": { + "type": "string", + "example": "TransferContract" + } + } + } + }, + "ref_block_bytes": { + "type": "string", + "example": "6d64" + }, + "ref_block_hash": { + "type": "string", + "example": "f35991f9b546f69f" + }, + "expiration": { + "type": "integer", + "example": 1616394384000, + "default": 0 + }, + "timestamp": { + "type": "integer", + "example": 1616394325960, + "default": 0 + } + } + }, + "raw_data_hex": { + "type": "string", + "example": "0a026d642208f35991f9b546f69f4080e5f3c4852f5a68080112640a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412330a154192c47b086eae54ed142d75ce4806df751bac75511215411113df41d4f3b8b46acc40c266bee87eca42c73d18809dca6f70c89ff0c4852f" + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/gettransactionlistfrompending": { + "get": { + "summary": "GetTransactionListFromPending", + "description": "Get transaction list information from pending pool", + "operationId": "gettransactionlistfrompending", + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\n \"txId\": [\n \"48ce8d57e83cc6c28737b785af4d0732c70fa73c2900ed4291b376364872775a\",\n \"3b37e600a2d90cd464c2a8ca58b1f0183b75667a0a50d8e17db440b2f614084c\",\n \"bf40178f1d2d12a90d5caee5c71fa45f61c3c532328041c0fb44dc57b17dcd4c\",\n \"596b39cf802a0eb7bda035e124f1936f7ae01f7c418dc1f0628f077be180382a\",\n \"13f0f3e65f9dc1ad72117dbfd38c66c46355ca36dff85507b04216169cffc07b\"\n ]\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "txId": { + "type": "array", + "items": { + "type": "string", + "example": "48ce8d57e83cc6c28737b785af4d0732c70fa73c2900ed4291b376364872775a" + } + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/getpendingsize": { + "get": { + "summary": "GetPendingSize", + "description": "Get the size of the pending pool queue", + "operationId": "getpendingsize", + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\"pendingSize\": 126}" + } + }, + "schema": { + "type": "object", + "properties": { + "pendingSize": { + "type": "integer", + "example": 126, + "default": 0 + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/getblockbalance": { + "post": { + "summary": "GetBlockBalance", + "description": "Get all balance change operations in a block.(Note: At present, the interface data can only be queried through the following official nodes 13.228.119.63 & 18.139.193.235&18.141.79.38 &18.139.248.26)", + "operationId": "getblockbalance", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "hash": { + "type": "string", + "default": "0000000001f5b9ca67c722d9263879696c92e8e383d4f0b31c15a91b8a249029" + }, + "number": { + "type": "integer", + "default": 32881098, + "format": "int32" + }, + "visible": { + "type": "boolean", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\n \"block_identifier\": {\n \"hash\": \"000000000000dc2a3731e28a75b49ac1379bcc425afc95f6ab3916689fbb0189\",\n \"number\": 56362\n },\n \"timestamp\": 1530060672000,\n \"transaction_balance_trace\": [\n {\n \"transaction_identifier\": \"e6cabb1833cd1f795eed39d8dd7689eaa70e5bb217611766c74c7aa9feea80df\",\n \"operation\": [\n {\n \"operation_identifier\": 0,\n \"address\": \"TPttBLmFuykRi83y9HxDoEWxTQw6CCcQ4p\",\n \"amount\": -100000\n },\n {\n \"operation_identifier\": 1,\n \"address\": \"TLsV52sRDL79HXGGm9yzwKibb6BeruhUzy\",\n \"amount\": 100000\n },\n {\n \"operation_identifier\": 2,\n \"address\": \"TPttBLmFuykRi83y9HxDoEWxTQw6CCcQ4p\",\n \"amount\": -10000000\n },\n {\n \"operation_identifier\": 3,\n \"address\": \"TMrysg7DbwR1M8xqhpaPdVCHCuWFhw7uk1\",\n \"amount\": 10000000\n }\n ],\n \"type\": \"TransferContract\",\n \"status\": \"SUCCESS\"\n }\n ]\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "block_identifier": { + "type": "object", + "properties": { + "hash": { + "type": "string", + "example": "000000000000dc2a3731e28a75b49ac1379bcc425afc95f6ab3916689fbb0189" + }, + "number": { + "type": "integer", + "example": 56362, + "default": 0 + } + } + }, + "timestamp": { + "type": "integer", + "example": 1530060672000, + "default": 0 + }, + "transaction_balance_trace": { + "type": "array", + "items": { + "type": "object", + "properties": { + "transaction_identifier": { + "type": "string", + "example": "e6cabb1833cd1f795eed39d8dd7689eaa70e5bb217611766c74c7aa9feea80df" + }, + "operation": { + "type": "array", + "items": { + "type": "object", + "properties": { + "operation_identifier": { + "type": "integer", + "example": 0, + "default": 0 + }, + "address": { + "type": "string", + "example": "TPttBLmFuykRi83y9HxDoEWxTQw6CCcQ4p" + }, + "amount": { + "type": "integer", + "example": -100000, + "default": 0 + } + } + } + }, + "type": { + "type": "string", + "example": "TransferContract" + }, + "status": { + "type": "string", + "example": "SUCCESS" + } + } + } + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/getaccountbalance": { + "post": { + "summary": "GetAccountBalance", + "description": "Get the account balance in a specific block.(Note: At present, the interface data can only be queried through the following official nodes 13.228.119.63 & 18.139.193.235 & 18.141.79.38 & 18.139.248.26)", + "operationId": "getaccountbalance", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "account_identifier": { + "type": "string", + "default": "{ \"address\": \"TLLM21wteSPs4hKjbxgmH1L6poyMjeTbHm\" }", + "format": "json" + }, + "block_identifier": { + "type": "string", + "default": "{ \"hash\": \"0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9\", \"number\": 68682 }", + "format": "json" + }, + "visible": { + "type": "boolean", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\n \"balance\": 64086449348265042,\n \"block_identifier\": {\n \"hash\": \"0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9\",\n \"number\": 68682\n }\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "balance": { + "type": "integer", + "example": 64086449348265040, + "default": 0 + }, + "block_identifier": { + "type": "object", + "properties": { + "hash": { + "type": "string", + "example": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9" + }, + "number": { + "type": "integer", + "example": 68682, + "default": 0 + } + } + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/getcontractinfo": { + "post": { + "summary": "GetContractInfo", + "description": "Queries a contract's information from the blockchain. The difference from the `wallet/getcontract` interface is that this interface returns not only the `bytecode` but also the `runtime bytecode` of the contract. Compared with `bytecode`, `runtime bytecode` does not contain constructor and constructor parameter information.", + "operationId": "getcontractinfo", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "Contract address, converted to a hex string.", + "default": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs" + }, + "visible": { + "type": "boolean", + "description": "Optional, is address in visible format(base58check) or hex?", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false + } + }, + "/wallet/getenergyprices": { + "get": { + "summary": "GetEnergyPrices", + "description": "Query historical energy unit price", + "operationId": "getenergyprices", + "deprecated": false, + "security": [] + } + }, + "/wallet/getbandwidthprices": { + "get": { + "summary": "GetBandwidthPrices", + "description": "Query historical bandwidth unit price", + "operationId": "getbandwidthprices", + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Example API Call Output": { + "value": "" + } + } + } + } + } + }, + "deprecated": false, + "security": [], + "x-readme": { + "code-samples": [ + { + "language": "javascript", + "code": "$.post('https://api.trongrid.io/wallet/getnowblock', function(data) {\n console.log(data);\n});" + } + ], + "samples-languages": [ + "javascript" + ] + } + } + }, + "/wallet/getblock": { + "post": { + "summary": "GetBlock", + "description": "Query block header information or entire block information according to block height or block hash", + "operationId": "getblock-1", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id_or_num": { + "type": "string", + "description": "id_or_num can be the block height or the block hash. No value entered means to query the latest block.", + "default": "1000000" + }, + "detail": { + "type": "boolean", + "description": "true means query the entire block information include the header and body. false means only query the block header information.", + "default": false + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Example API Call Output": { + "value": "" + } + } + } + } + } + }, + "deprecated": false, + "security": [], + "x-readme": { + "code-samples": [ + { + "language": "javascript", + "code": "$.post('https://api.trongrid.io/wallet/getblockbynum', {\"num\" : 100}, function(data) {\n console.log(data);\n});", + "name": "JavaScript" + } + ], + "samples-languages": [ + "javascript" + ] + } + } + }, + "/wallet/estimateenergy": { + "post": { + "summary": "EstimateEnergy", + "description": "Estimate the energy required for the successful execution of smart contract transactions or deploying a contract", + "operationId": "estimateenergy", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address that triggers the contract. If visible=true, use base58check format, otherwise use hex format. For constant call you can use the all-zero address.", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "contract_address": { + "type": "string", + "description": "Smart contract address. If visible=true, use base58check format, otherwise use hex format.", + "default": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs" + }, + "function_selector": { + "type": "string", + "description": "Function call, must not be left blank.", + "default": "balanceOf(address)" + }, + "parameter": { + "type": "string", + "description": "Parameter encoding needs to be in accordance with the ABI rules, the rules are more complicated, users can use the ethers library to encode,For details, please refer to the document-Guide-Smart Contract-Best Practice-Parameter Encoding and Decoding.", + "default": "000000000000000000000000a614f803b6fd780986a42c78ec9c7f77e6ded13c" + }, + "data": { + "type": "string", + "description": "The bytecode of the contract or the data for interacting with smart contracts, including the contract function and parameters. You can choose to use this field, or you can choose to use function_selector and parameter for contract interaction. When both of data and function_selector exist, function_selector is preferred" + }, + "call_value": { + "type": "integer", + "description": "Amount of TRX transferred with this transaction, measured in SUN (1 TRX = 1,000,000 SUN).", + "format": "int64" + }, + "call_token_value": { + "type": "integer", + "description": "Amount of TRC10 token transferred with this transaction", + "format": "int64" + }, + "token_id": { + "type": "integer", + "description": "TRC10 token id", + "format": "int64" + }, + "visible": { + "type": "boolean", + "description": "Optional.Whehter the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{\n \"result\":{\"result\":true},\n // constant_result should be parsed by corresponding ABI\n \"constant_result\":[\"000000000000000000000000000000000000000000000000000009a1832a6361\"]\n // ...\n}" + } + }, + "schema": { + "type": "object", + "properties": { + "result": { + "type": "object", + "properties": { + "result": { + "type": "boolean", + "example": true, + "default": true + } + } + }, + "constant_result": { + "type": "array", + "items": { + "type": "string", + "example": "000000000000000000000000000000000000000000000000000009a1832a6361" + } + } + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getburntrx": { + "get": { + "summary": "GetBurnTRX", + "description": "Query the amount of TRX burned due to on-chain transaction fees since [No. 54 Committee Proposal ](https://tronscan.org/#/proposal/54) took effect", + "operationId": "getburntrx", + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Example API Call Output": { + "value": "" + } + } + } + } + } + }, + "deprecated": false, + "security": [], + "x-readme": { + "code-samples": [ + { + "language": "javascript", + "code": "$.post('https://api.trongrid.io/wallet/getnowblock', function(data) {\n console.log(data);\n});" + } + ], + "samples-languages": [ + "javascript" + ] + } + } + }, + "/wallet/freezebalancev2": { + "post": { + "summary": "FreezeBalanceV2", + "description": "In Stake2.0, stake an amount of TRX to obtain bandwidth or energy, and obtain equivalent TRON Power(TP) according to the staked amount", + "operationId": "freezebalancev2-1", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "owner_address", + "frozen_balance", + "resource" + ], + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address, default hexString", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "frozen_balance": { + "type": "integer", + "description": "TRX stake amount, the unit is sun", + "default": 10000000, + "format": "int64" + }, + "resource": { + "type": "string", + "description": "TRX stake type, 'BANDWIDTH' or 'ENERGY'", + "default": "ENERGY" + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional. Default is false. Whether addresses are in base58check format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/unfreezebalancev2": { + "post": { + "summary": "UnfreezeBalanceV2", + "description": "Unstake some TRX staked in Stake2.0, release the corresponding amount of bandwidth or energy, and voting rights (TP)", + "operationId": "unfreezebalancev2-1", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address, default hexString", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "unfreeze_balance": { + "type": "integer", + "description": "The amount of TRX to unstake, in sun", + "default": 1000000, + "format": "int64" + }, + "resource": { + "type": "string", + "description": "Resource type: 'BANDWIDTH' or 'ENERGY'", + "default": "BANDWIDTH" + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/delegateresource": { + "post": { + "summary": "DelegateResource", + "description": "Delegate bandwidth or energy resources to other accounts in Stake2.0.", + "operationId": "delegateresource-1", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address, default hexString", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "receiver_address": { + "type": "string", + "description": "Resource receiver address", + "default": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1" + }, + "balance": { + "type": "integer", + "description": "Amount of TRX staked for resources to be delegated, unit is sun", + "default": 1000000, + "format": "int64" + }, + "resource": { + "type": "string", + "description": "Resource type: 'BANDWIDTH' or 'ENERGY'", + "default": "BANDWIDTH" + }, + "lock": { + "type": "boolean", + "description": "Whether it is locked (default is false), if it is set to true, the delegated resources cannot be undelegated within the lock period specified by `lock_period`. When the lock time is not over, if the owner delegates the same type of resources using the lock to the same address, the lock time will be set to the value specified by `lock_period`. If it is false, that means there is no lock-up period for this resource delegation, and the resource for the target address can be canceled at any time. The default value of this field is false", + "default": false + }, + "lock_period": { + "type": "integer", + "description": "Lock time,The unit is block interval(3 seconds), indicates the time of how many blocks which the delegation will be locked. Only when lock is true, this field is valid. If the delegate lock period is 1 day, the lock_period is: 28800. The minimum value of lock_period is the remaining lock period of this type of resource that was delegated last time, and the maximum value is 864000 (30 days). If lock is true and lock_period is not set or set to 0, lock_period will be set to the default value 86400 (3 days) automatically", + "format": "int64" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/withdrawexpireunfreeze": { + "post": { + "summary": "WithdrawExpireUnfreeze", + "description": "Withdraw unfrozen balance in Stake2.0, the user can call this API to get back their funds after executing /wallet/unfreezebalancev2 transaction and waiting N days, N is a network parameter", + "operationId": "withdrawexpireunfreeze", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address, default hexString", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/undelegateresource": { + "post": { + "summary": "UnDelegateResource", + "description": "Cancel the delegation of bandwidth or energy resources to other accounts in Stake2.0", + "operationId": "undelegateresource-1", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address, default hexString", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "receiver_address": { + "type": "string", + "description": "Resource receiver address", + "default": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1" + }, + "balance": { + "type": "integer", + "description": "Amount of TRX staked for resources to be delegated, unit is sun", + "default": 1000000, + "format": "int64" + }, + "resource": { + "type": "string", + "description": "Resource type: 'BANDWIDTH' or 'ENERGY'", + "default": "BANDWIDTH" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getavailableunfreezecount": { + "post": { + "summary": "GetAvailableUnfreezeCount", + "description": "Remaining times of executing unstake operation in Stake2.0", + "operationId": "getavailableunfreezecount-1", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address, default hexString", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getcanwithdrawunfreezeamount": { + "post": { + "summary": "GetCanWithdrawUnfreezeAmount", + "description": "Query the withdrawable balance at the specified timestamp In Stake2.0", + "operationId": "getcanwithdrawunfreezeamount-1", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address, default hexString", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "timestamp": { + "type": "integer", + "description": "query cutoff timestamp, in milliseconds.", + "default": 1667977444000, + "format": "int64" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getcandelegatedmaxsize": { + "post": { + "summary": "GetCanDelegatedMaxSize", + "description": "In Stake2.0, query the amount of delegatable resources share of the specified resource type for an address, unit is sun.", + "operationId": "getcandelegatedmaxsize", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address, default hexString", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "type": { + "type": "integer", + "description": "resource type, 0 is bandwidth, 1 is energy", + "default": 0, + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getdelegatedresourcev2": { + "post": { + "summary": "GetDelegatedResourceV2", + "description": "In Stake2.0, query the detail of resource share delegated from fromAddress to toAddress", + "operationId": "getdelegatedresourcev2", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "fromAddress": { + "type": "string", + "description": "resource from address, default hexString", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "toAddress": { + "type": "string", + "description": "resource to address", + "default": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getdelegatedresourceaccountindexv2": { + "post": { + "summary": "GetDelegatedResourceAccountIndexV2", + "description": "In Stake2.0, query the resource delegation index by an account. Two lists will return, one is the list of addresses the account has delegated its resources(toAddress), and the other is the list of addresses that have delegated resources to the account(fromAddress).", + "operationId": "getdelegatedresourceaccountindexv2-1", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "account address, default hexString", + "default": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getassetissuebyname": { + "post": { + "summary": "GetAssetIssueByName", + "description": "Query a token by name, returns token info.", + "operationId": "getassetissuebyname-copy", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "TRC 10 token name, default hexString", + "default": "62747474657374" + } + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getassetissuelistbyname": { + "post": { + "summary": "GetAssetIssueListByName", + "description": "Query the list of all the TRC10 tokens by a name.", + "operationId": "getassetissuelistbyname-copy", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "Name of the TRC 10 token, default hexString", + "default": "62747474657374" + } + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/cancelallunfreezev2": { + "post": { + "summary": "CancelAllUnfreezeV2", + "description": "Cancel unstakings, all unstaked funds still in the waiting period will be re-staked, all unstaked funds that exceeded the 14-day waiting period will be automatically withdrawn to the owner’s account", + "operationId": "cancelallunfreezev2", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner_address": { + "type": "string", + "description": "Owner address, default hexString", + "default": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g" + }, + "Permission_id": { + "type": "integer", + "description": "Optional, for multi-signature use", + "format": "int32" + }, + "visible": { + "type": "boolean", + "description": "Optional, Whether the address is in base58 format.", + "default": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "examples": { + "Result": { + "value": "{}" + } + }, + "schema": { + "type": "object", + "properties": {} + } + } + } + } + }, + "deprecated": false, + "security": [] + } + }, + "/wallet/getapprovedlist": { + "post": { + "summary": "GetApprovedList", + "description": "Query the account address list which signed the transaction.", + "operationId": "http-getapprovedlist", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "signature", + "raw_data" + ], + "properties": { + "signature": { + "type": "array", + "description": "The signature list of transaction", + "default": [ + "e0bd4a60f1b3c89d4da3894d400e7e32385f6dd690aee17fdac4e016cdb294c5128b66f62f3947a7182c015547496eba95510c113bda2a361d811b829343c36501", + "596ead6439d0f381e67f30b1ed6b3687f2bd53ce5140cdb126cfe4183235804741eeaf79b4e91f251fd7042380a9485d4d29d67f112d5387bc7457b355cd3c4200" + ], + "items": { + "type": "string" + } + }, + "raw_data": { + "type": "string", + "description": "The transaction raw data", + "default": "{ \"contract\": [ { \"parameter\": { \"value\": { \"amount\": 1000000, \"owner_address\": \"41A7D8A35B260395C14AA456297662092BA3B76FC0\", \"to_address\": \"415A523B449890854C8FC460AB602DF9F31FE4293F\" }, \"type_url\": \"type.googleapis.com/protocol.TransferContract\" }, \"type\": \"TransferContract\" } ], \"ref_block_bytes\": \"163d\", \"ref_block_hash\": \"77ef4ace148b05ba\", \"expiration\": 1555664823000, \"timestamp\": 1555664763418 }", + "format": "json" + }, + "visible": { + "type": "boolean", + "description": "Whether the account address format is base58check" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "examples": { + "Example API Call Output": { + "value": "" + } + } + } + } + } + }, + "deprecated": false, + "security": [], + "x-readme": { + "code-samples": [ + { + "language": "javascript", + "code": "$.post('https://api.trongrid.io/wallet/getnowblock', function(data) {\n console.log(data);\n});" + } + ], + "samples-languages": [ + "javascript" + ] + } + } + } + }, + "x-readme": { + "headers": [] + }, + "x-readme-fauxas": true +} \ No newline at end of file diff --git a/.api/apis/tron/package-lock.json b/.api/apis/tron/package-lock.json new file mode 100644 index 0000000..6227dca --- /dev/null +++ b/.api/apis/tron/package-lock.json @@ -0,0 +1,2446 @@ +{ + "name": "@api/tron", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@api/tron", + "version": "0.0.0", + "dependencies": { + "api": "^6.1.1", + "json-schema-to-ts": "^2.8.0-beta.0", + "oas": "^20.10.3" + } + }, + "node_modules/@apidevtools/swagger-methods": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@apidevtools/swagger-methods/-/swagger-methods-3.0.2.tgz", + "integrity": "sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg==" + }, + "node_modules/@babel/code-frame": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", + "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", + "dependencies": { + "@babel/highlight": "^7.24.7", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", + "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", + "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.24.7", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/runtime": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.7.tgz", + "integrity": "sha512-UwgBRMjJP+xv857DCngvqXI3Iq6J4v0wXmwc6sapg+zyhbwmQX67LUEFrkK5tbyJ30jGuG3ZvWpBiB9LCy1kWw==", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@exodus/schemasafe": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@exodus/schemasafe/-/schemasafe-1.3.0.tgz", + "integrity": "sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw==" + }, + "node_modules/@humanwhocodes/momoa": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@humanwhocodes/momoa/-/momoa-2.0.4.tgz", + "integrity": "sha512-RE815I4arJFtt+FVeU1Tgp9/Xvecacji8w/V6XtXsWWH/wz/eNkNbhb+ny/+PlVZjV0rxQpRSQKNKE3lcktHEA==", + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@jsdevtools/ono": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz", + "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==" + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@readme/better-ajv-errors": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@readme/better-ajv-errors/-/better-ajv-errors-1.6.0.tgz", + "integrity": "sha512-9gO9rld84Jgu13kcbKRU+WHseNhaVt76wYMeRDGsUGYxwJtI3RmEJ9LY9dZCYQGI8eUZLuxb5qDja0nqklpFjQ==", + "dependencies": { + "@babel/code-frame": "^7.16.0", + "@babel/runtime": "^7.21.0", + "@humanwhocodes/momoa": "^2.0.3", + "chalk": "^4.1.2", + "json-to-ast": "^2.0.3", + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "ajv": "4.11.8 - 8" + } + }, + "node_modules/@readme/data-urls": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@readme/data-urls/-/data-urls-1.0.1.tgz", + "integrity": "sha512-FNP4ntG5rCgmrvQGoNH/Ljivc6jSWaaVeMuXneOyQ6oLuhm/NkysXJN3DnBrIsJUJbSae7qIs2QfPYnaropoHw==", + "engines": { + "node": ">=14" + } + }, + "node_modules/@readme/http-status-codes": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@readme/http-status-codes/-/http-status-codes-7.2.0.tgz", + "integrity": "sha512-/dBh9qw3QhJYqlGwt2I+KUP/lQ6nytdCx3aq+GpMUhibLHF3O7fwoowNcTwlbnwtyJ+TJYTIIrp3oVUlRNx3fA==" + }, + "node_modules/@readme/json-schema-ref-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@readme/json-schema-ref-parser/-/json-schema-ref-parser-1.2.0.tgz", + "integrity": "sha512-Bt3QVovFSua4QmHa65EHUmh2xS0XJ3rgTEUPH998f4OW4VVJke3BuS16f+kM0ZLOGdvIrzrPRqwihuv5BAjtrA==", + "dependencies": { + "@jsdevtools/ono": "^7.1.3", + "@types/json-schema": "^7.0.6", + "call-me-maybe": "^1.0.1", + "js-yaml": "^4.1.0" + } + }, + "node_modules/@readme/oas-extensions": { + "version": "17.0.1", + "resolved": "https://registry.npmjs.org/@readme/oas-extensions/-/oas-extensions-17.0.1.tgz", + "integrity": "sha512-PCU7WLz8TkbdxsiE4eQGvJYDYZQPiyLhXme3SvLboSmH+8G6AJPJ5OymzSAdlf5sXpSSoD2q3dTIou3Cb2DirQ==", + "deprecated": "The functionality for this library has been moved into `oas`.", + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "oas": "^20.0.0" + } + }, + "node_modules/@readme/oas-to-har": { + "version": "20.1.1", + "resolved": "https://registry.npmjs.org/@readme/oas-to-har/-/oas-to-har-20.1.1.tgz", + "integrity": "sha512-rz8YpdZw+Jqrd8VQhQaYrzctkCAYdBldoQ5qDQyF9vGvq2lpA1yMvQPgKCJXfPGXH8Cm+NjLbunxnYabKQeKeA==", + "dependencies": { + "@readme/data-urls": "^1.0.1", + "@readme/oas-extensions": "^17.0.1", + "oas": "^20.5.0", + "qs": "^6.10.5", + "remove-undefined-objects": "^2.0.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@readme/openapi-parser": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@readme/openapi-parser/-/openapi-parser-2.6.0.tgz", + "integrity": "sha512-pyFJXezWj9WI1O+gdp95CoxfY+i+Uq3kKk4zXIFuRAZi9YnHpHOpjumWWr67wkmRTw19Hskh9spyY0Iyikf3fA==", + "dependencies": { + "@apidevtools/swagger-methods": "^3.0.2", + "@jsdevtools/ono": "^7.1.3", + "@readme/better-ajv-errors": "^1.6.0", + "@readme/json-schema-ref-parser": "^1.2.0", + "@readme/openapi-schemas": "^3.1.0", + "ajv": "^8.12.0", + "ajv-draft-04": "^1.0.0", + "call-me-maybe": "^1.0.1" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "openapi-types": ">=7" + } + }, + "node_modules/@readme/openapi-schemas": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@readme/openapi-schemas/-/openapi-schemas-3.1.0.tgz", + "integrity": "sha512-9FC/6ho8uFa8fV50+FPy/ngWN53jaUu4GRXlAjcxIRrzhltJnpKkBG2Tp0IDraFJeWrOpk84RJ9EMEEYzaI1Bw==", + "engines": { + "node": ">=18" + } + }, + "node_modules/@readme/postman-to-openapi": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@readme/postman-to-openapi/-/postman-to-openapi-4.1.0.tgz", + "integrity": "sha512-VvV2Hzjskz01m8doSn7Ypt6cSZzgjnypVqXy1ipThbyYD6SGiM74VSePXykOODj/43Y2m6zeYedPk/ZLts/HvQ==", + "dependencies": { + "@readme/http-status-codes": "^7.2.0", + "js-yaml": "^4.1.0", + "jsonc-parser": "3.2.0", + "lodash.camelcase": "^4.3.0", + "marked": "^4.3.0", + "mustache": "^4.2.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@ts-morph/common": { + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.18.1.tgz", + "integrity": "sha512-RVE+zSRICWRsfrkAw5qCAK+4ZH9kwEFv5h0+/YeHTLieWP7F4wWq4JsKFuNWG+fYh/KF+8rAtgdj5zb2mm+DVA==", + "dependencies": { + "fast-glob": "^3.2.12", + "minimatch": "^5.1.0", + "mkdirp": "^1.0.4", + "path-browserify": "^1.0.1" + } + }, + "node_modules/@types/har-format": { + "version": "1.2.15", + "resolved": "https://registry.npmjs.org/@types/har-format/-/har-format-1.2.15.tgz", + "integrity": "sha512-RpQH4rXLuvTXKR0zqHq3go0RVXYv/YVqv4TnPH95VbwUxZdQlK1EtcMvQvMpDngHbt13Csh9Z4qT9AbkiQH5BA==" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==" + }, + "node_modules/ajv": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.16.0.tgz", + "integrity": "sha512-F0twR8U1ZU67JIEtekUcLkXkoO5mMMmgGD8sK/xUFzJ805jxHQl92hImFAqqXMyMYjSPOyUPAwHYhB72g5sTXw==", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.4.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-draft-04": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", + "peerDependencies": { + "ajv": "^8.5.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/api": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/api/-/api-6.1.1.tgz", + "integrity": "sha512-we3fnLinpYWlKOHdX4S/Ky9gZvColCnht/qhtv04K2jQbrC/z4SxvZVAT8W8PCC5NLLU4H35r3u4Lt77ZaiY9w==", + "dependencies": { + "@readme/oas-to-har": "^20.0.2", + "@readme/openapi-parser": "^2.4.0", + "caseless": "^0.12.0", + "chalk": "^4.1.2", + "commander": "^10.0.0", + "datauri": "^4.1.0", + "execa": "^5.1.1", + "fetch-har": "^8.1.5", + "figures": "^3.2.0", + "find-cache-dir": "^3.3.1", + "form-data-encoder": "^1.7.2", + "formdata-node": "^4.3.2", + "get-stream": "^6.0.1", + "isomorphic-fetch": "^3.0.0", + "js-yaml": "^4.1.0", + "json-schema-to-ts": "^2.6.2-beta.0", + "json-schema-traverse": "^1.0.0", + "lodash.camelcase": "^4.3.0", + "lodash.deburr": "^4.1.0", + "lodash.merge": "^4.6.2", + "lodash.setwith": "^4.3.2", + "lodash.startcase": "^4.4.0", + "make-dir": "^3.1.0", + "node-abort-controller": "^3.1.1", + "oas": "^20.4.0", + "ora": "^5.4.1", + "prompts": "^2.4.2", + "remove-undefined-objects": "^2.0.2", + "semver": "^7.3.8", + "ssri": "^10.0.1", + "ts-morph": "^17.0.1", + "validate-npm-package-name": "^5.0.0" + }, + "bin": { + "api": "bin/api" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/api/node_modules/json-schema-to-ts": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/json-schema-to-ts/-/json-schema-to-ts-2.12.0.tgz", + "integrity": "sha512-uTde38yBm5lzJSRPWRaasxZo72pb+JGE4iUksNdNfAkFaLhV4N9akeBxPPUpZy5onINt9Zo0oTLrAoEXyZESiQ==", + "dependencies": { + "@babel/runtime": "^7.18.3", + "@types/json-schema": "^7.0.9", + "ts-algebra": "^1.2.2" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/call-bind": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", + "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-me-maybe": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.2.tgz", + "integrity": "sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==" + }, + "node_modules/caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==" + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-spinners": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/code-block-writer": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-11.0.3.tgz", + "integrity": "sha512-NiujjUFB4SwScJq2bwbYUtXbZhBSlY6vYzm++3Q6oC+U+injTqfPYFK8wS9COOmb2lueqp0ZRB4nK1VYeHgNyw==" + }, + "node_modules/code-error-fragment": { + "version": "0.0.230", + "resolved": "https://registry.npmjs.org/code-error-fragment/-/code-error-fragment-0.0.230.tgz", + "integrity": "sha512-cadkfKp6932H8UkhzE/gcUqhRMNf8jHzkAN7+5Myabswaghu4xABTgPHDCjW+dBAJxj/SpkTYokpzDqY4pCzQw==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/commander": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", + "engines": { + "node": ">=14" + } + }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==" + }, + "node_modules/compute-gcd": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/compute-gcd/-/compute-gcd-1.2.1.tgz", + "integrity": "sha512-TwMbxBNz0l71+8Sc4czv13h4kEqnchV9igQZBi6QUaz09dnz13juGnnaWWJTRsP3brxOoxeB4SA2WELLw1hCtg==", + "dependencies": { + "validate.io-array": "^1.0.3", + "validate.io-function": "^1.0.2", + "validate.io-integer-array": "^1.0.0" + } + }, + "node_modules/compute-lcm": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/compute-lcm/-/compute-lcm-1.1.2.tgz", + "integrity": "sha512-OFNPdQAXnQhDSKioX8/XYT6sdUlXwpeMjfd6ApxMJfyZ4GxmLR1xvMERctlYhlHwIiz6CSpBc2+qYKjHGZw4TQ==", + "dependencies": { + "compute-gcd": "^1.2.1", + "validate.io-array": "^1.0.3", + "validate.io-function": "^1.0.2", + "validate.io-integer-array": "^1.0.0" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/d": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.2.tgz", + "integrity": "sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==", + "dependencies": { + "es5-ext": "^0.10.64", + "type": "^2.7.2" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/datauri": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/datauri/-/datauri-4.1.0.tgz", + "integrity": "sha512-y17kh32+I82G+ED9MNWFkZiP/Cq/vO1hN9+tSZsT9C9qn3NrvcBnh7crSepg0AQPge1hXx2Ca44s1FRdv0gFWA==", + "dependencies": { + "image-size": "1.0.0", + "mimer": "^2.0.2" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/defaults": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", + "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", + "dependencies": { + "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/es-define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", + "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "dependencies": { + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es5-ext": { + "version": "0.10.64", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz", + "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", + "hasInstallScript": true, + "dependencies": { + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.3", + "esniff": "^2.0.1", + "next-tick": "^1.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", + "dependencies": { + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/es6-promise": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz", + "integrity": "sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==" + }, + "node_modules/es6-symbol": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.4.tgz", + "integrity": "sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==", + "dependencies": { + "d": "^1.0.2", + "ext": "^1.7.0" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/es6-weak-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz", + "integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==", + "dependencies": { + "d": "1", + "es5-ext": "^0.10.46", + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/escalade": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/esniff": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", + "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", + "dependencies": { + "d": "^1.0.1", + "es5-ext": "^0.10.62", + "event-emitter": "^0.3.5", + "type": "^2.7.2" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", + "dependencies": { + "d": "1", + "es5-ext": "~0.10.14" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/ext": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", + "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", + "dependencies": { + "type": "^2.7.2" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" + }, + "node_modules/fastq": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fetch-har": { + "version": "8.1.5", + "resolved": "https://registry.npmjs.org/fetch-har/-/fetch-har-8.1.5.tgz", + "integrity": "sha512-c9WDro4RWC+suOVRJFNW21cgqTOELRZpvFJgfENvOM7Yt/VA4QeFtRax795SyOpTisdpcl5XNQlQZdAE6HERDA==", + "dependencies": { + "@readme/data-urls": "^1.0.1", + "@types/har-format": "^1.2.8", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=14" + }, + "optionalDependencies": { + "formdata-node": "^4.3.2" + } + }, + "node_modules/figures": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", + "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "dependencies": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/avajs/find-cache-dir?sponsor=1" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/form-data-encoder": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.9.0.tgz", + "integrity": "sha512-rahaRMkN8P8d/tgK/BLPX+WBVM27NbvdXBxqQujBtkDAIFspaRqN7Od7lfdGQA6KAD+f82fYCLBq1ipvcu8qLw==" + }, + "node_modules/formdata-node": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz", + "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==", + "dependencies": { + "node-domexception": "1.0.0", + "web-streams-polyfill": "4.0.0-beta.3" + }, + "engines": { + "node": ">= 12.20" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", + "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/grapheme-splitter": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", + "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", + "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http2-client": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/http2-client/-/http2-client-1.3.5.tgz", + "integrity": "sha512-EC2utToWl4RKfs5zd36Mxq7nzHHBuomZboI0yYL6Y0RmBgT7Sgkq4rQ0ezFTYoIsSs7Tm9SJe+o2FcAg6GBhGA==" + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/image-size": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.0.0.tgz", + "integrity": "sha512-JLJ6OwBfO1KcA+TvJT+v8gbE6iWbj24LyDNFgFEN0lzegn6cC6a/p3NIDaepMsJjQjlUWqIC7wJv8lBFxPNjcw==", + "dependencies": { + "queue": "6.0.2" + }, + "bin": { + "image-size": "bin/image-size.js" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-promise": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz", + "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==" + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + }, + "node_modules/isomorphic-fetch": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz", + "integrity": "sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==", + "dependencies": { + "node-fetch": "^2.6.1", + "whatwg-fetch": "^3.4.1" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-schema-compare": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/json-schema-compare/-/json-schema-compare-0.2.2.tgz", + "integrity": "sha512-c4WYmDKyJXhs7WWvAWm3uIYnfyWFoIp+JEoX34rctVvEkMYCPGhXtvmFFXiffBbxfZsvQ0RNnV5H7GvDF5HCqQ==", + "dependencies": { + "lodash": "^4.17.4" + } + }, + "node_modules/json-schema-merge-allof": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/json-schema-merge-allof/-/json-schema-merge-allof-0.8.1.tgz", + "integrity": "sha512-CTUKmIlPJbsWfzRRnOXz+0MjIqvnleIXwFTzz+t9T86HnYX/Rozria6ZVGLktAU9e+NygNljveP+yxqtQp/Q4w==", + "dependencies": { + "compute-lcm": "^1.1.2", + "json-schema-compare": "^0.2.2", + "lodash": "^4.17.20" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/json-schema-to-ts": { + "version": "2.8.0-beta.0", + "resolved": "https://registry.npmjs.org/json-schema-to-ts/-/json-schema-to-ts-2.8.0-beta.0.tgz", + "integrity": "sha512-t6xj/KIdBtqckJXpGarvbcZLnK/3wxA7nkxPrAaXynigWUVJ4emZ5i4+n6TjLgZzryeVVpEUgruzFONiHObn3A==", + "dependencies": { + "@babel/runtime": "^7.18.3", + "@types/json-schema": "^7.0.9", + "ts-algebra": "^1.2.0" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/json-to-ast": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/json-to-ast/-/json-to-ast-2.1.0.tgz", + "integrity": "sha512-W9Lq347r8tA1DfMvAGn9QNcgYm4Wm7Yc+k8e6vezpMnRT+NHbtlxgNBXRVjXe9YM6eTn6+p/MKOlV/aABJcSnQ==", + "dependencies": { + "code-error-fragment": "0.0.230", + "grapheme-splitter": "^1.0.4" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/jsonc-parser": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", + "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==" + }, + "node_modules/jsonpath-plus": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.2.0.tgz", + "integrity": "sha512-zBfiUPM5nD0YZSBT/o/fbCUlCcepMIdP0CJZxM1+KgA4f2T206f6VAg9e7mX35+KlMaIc5qXW34f3BnwJ3w+RA==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/jsonpointer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", + "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" + }, + "node_modules/lodash.deburr": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/lodash.deburr/-/lodash.deburr-4.1.0.tgz", + "integrity": "sha512-m/M1U1f3ddMCs6Hq2tAsYThTBDaAKFDX3dwDo97GEYzamXi9SqUpjWi/Rrj/gf3X2n8ktwgZrlP1z6E3v/IExQ==" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" + }, + "node_modules/lodash.setwith": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/lodash.setwith/-/lodash.setwith-4.3.2.tgz", + "integrity": "sha512-Cv2pndcuNDaqDMJ0gbLm5qNG5jyfsL6f8+f5PfZVVNhQCv+y+P5gAKkCdZbtiQlux7nsnWF7UmZd8JEFIo/4tg==" + }, + "node_modules/lodash.startcase": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.startcase/-/lodash.startcase-4.4.0.tgz", + "integrity": "sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==" + }, + "node_modules/log-symbols": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "dependencies": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lru-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz", + "integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==", + "dependencies": { + "es5-ext": "~0.10.2" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/marked": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", + "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 12" + } + }, + "node_modules/memoizee": { + "version": "0.4.17", + "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.17.tgz", + "integrity": "sha512-DGqD7Hjpi/1or4F/aYAspXKNm5Yili0QDAFAY4QYvpqpgiY6+1jOfqpmByzjxbWd/T9mChbCArXAbDAsTm5oXA==", + "dependencies": { + "d": "^1.0.2", + "es5-ext": "^0.10.64", + "es6-weak-map": "^2.0.3", + "event-emitter": "^0.3.5", + "is-promise": "^2.2.2", + "lru-queue": "^0.1.0", + "next-tick": "^1.1.0", + "timers-ext": "^0.1.7" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", + "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mimer": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/mimer/-/mimer-2.0.2.tgz", + "integrity": "sha512-izxvjsB7Ur5HrTbPu6VKTrzxSMBFBqyZQc6dWlZNQ4/wAvf886fD4lrjtFd8IQ8/WmZKdxKjUtqFFNaj3hQ52g==", + "bin": { + "mimer": "bin/mimer" + }, + "engines": { + "node": ">= 12" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mustache": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz", + "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==", + "bin": { + "mustache": "bin/mustache" + } + }, + "node_modules/next-tick": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", + "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" + }, + "node_modules/node-abort-controller": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/node-abort-controller/-/node-abort-controller-3.1.1.tgz", + "integrity": "sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==" + }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "engines": { + "node": ">=10.5.0" + } + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-fetch-h2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/node-fetch-h2/-/node-fetch-h2-2.3.0.tgz", + "integrity": "sha512-ofRW94Ab0T4AOh5Fk8t0h8OBWrmjb0SSB20xh1H8YnPV9EJ+f5AMoYSUQ2zgJ4Iq2HAK0I2l5/Nequ8YzFS3Hg==", + "dependencies": { + "http2-client": "^1.2.5" + }, + "engines": { + "node": "4.x || >=6.0.0" + } + }, + "node_modules/node-readfiles": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/node-readfiles/-/node-readfiles-0.2.0.tgz", + "integrity": "sha512-SU00ZarexNlE4Rjdm83vglt5Y9yiQ+XI1XpflWlb7q7UTN1JUItm69xMeiQCTxtTfnzt+83T8Cx+vI2ED++VDA==", + "dependencies": { + "es6-promise": "^3.2.1" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/oas": { + "version": "20.10.3", + "resolved": "https://registry.npmjs.org/oas/-/oas-20.10.3.tgz", + "integrity": "sha512-dBxDuwn2ssggPMOqEKEzT4sjCqbkol8JozuWrpwD7chcmbKbverj5vpk2kmsczeyguFkLcKUOMcqUUimf9h+IQ==", + "dependencies": { + "@readme/json-schema-ref-parser": "^1.2.0", + "@types/json-schema": "^7.0.11", + "json-schema-merge-allof": "^0.8.1", + "jsonpath-plus": "^7.2.0", + "jsonpointer": "^5.0.0", + "memoizee": "^0.4.14", + "oas-normalize": "^8.4.0", + "openapi-types": "^12.1.1", + "path-to-regexp": "^6.2.0", + "remove-undefined-objects": "^3.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/oas-kit-common": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/oas-kit-common/-/oas-kit-common-1.0.8.tgz", + "integrity": "sha512-pJTS2+T0oGIwgjGpw7sIRU8RQMcUoKCDWFLdBqKB2BNmGpbBMH2sdqAaOXUg8OzonZHU0L7vfJu1mJFEiYDWOQ==", + "dependencies": { + "fast-safe-stringify": "^2.0.7" + } + }, + "node_modules/oas-linter": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/oas-linter/-/oas-linter-3.2.2.tgz", + "integrity": "sha512-KEGjPDVoU5K6swgo9hJVA/qYGlwfbFx+Kg2QB/kd7rzV5N8N5Mg6PlsoCMohVnQmo+pzJap/F610qTodKzecGQ==", + "dependencies": { + "@exodus/schemasafe": "^1.0.0-rc.2", + "should": "^13.2.1", + "yaml": "^1.10.0" + }, + "funding": { + "url": "https://github.com/Mermade/oas-kit?sponsor=1" + } + }, + "node_modules/oas-normalize": { + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/oas-normalize/-/oas-normalize-8.4.1.tgz", + "integrity": "sha512-cGODg+AntZteJRHBiYDWKtcO2svWGMXuFWYu2I8b4hOrNiwB3hgDs/ScX3O9mYm6RpLsUIftt6rDHGc8eYG8aA==", + "dependencies": { + "@readme/openapi-parser": "^2.5.0", + "@readme/postman-to-openapi": "^4.1.0", + "js-yaml": "^4.1.0", + "node-fetch": "^2.6.1", + "openapi-types": "^12.1.0", + "swagger2openapi": "^7.0.8" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/oas-resolver": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/oas-resolver/-/oas-resolver-2.5.6.tgz", + "integrity": "sha512-Yx5PWQNZomfEhPPOphFbZKi9W93CocQj18NlD2Pa4GWZzdZpSJvYwoiuurRI7m3SpcChrnO08hkuQDL3FGsVFQ==", + "dependencies": { + "node-fetch-h2": "^2.3.0", + "oas-kit-common": "^1.0.8", + "reftools": "^1.1.9", + "yaml": "^1.10.0", + "yargs": "^17.0.1" + }, + "bin": { + "resolve": "resolve.js" + }, + "funding": { + "url": "https://github.com/Mermade/oas-kit?sponsor=1" + } + }, + "node_modules/oas-schema-walker": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/oas-schema-walker/-/oas-schema-walker-1.1.5.tgz", + "integrity": "sha512-2yucenq1a9YPmeNExoUa9Qwrt9RFkjqaMAA1X+U7sbb0AqBeTIdMHky9SQQ6iN94bO5NW0W4TRYXerG+BdAvAQ==", + "funding": { + "url": "https://github.com/Mermade/oas-kit?sponsor=1" + } + }, + "node_modules/oas-validator": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/oas-validator/-/oas-validator-5.0.8.tgz", + "integrity": "sha512-cu20/HE5N5HKqVygs3dt94eYJfBi0TsZvPVXDhbXQHiEityDN+RROTleefoKRKKJ9dFAF2JBkDHgvWj0sjKGmw==", + "dependencies": { + "call-me-maybe": "^1.0.1", + "oas-kit-common": "^1.0.8", + "oas-linter": "^3.2.2", + "oas-resolver": "^2.5.6", + "oas-schema-walker": "^1.1.5", + "reftools": "^1.1.9", + "should": "^13.2.1", + "yaml": "^1.10.0" + }, + "funding": { + "url": "https://github.com/Mermade/oas-kit?sponsor=1" + } + }, + "node_modules/oas/node_modules/remove-undefined-objects": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/remove-undefined-objects/-/remove-undefined-objects-3.0.0.tgz", + "integrity": "sha512-nxG1yYfc/Jxi+bNCBiqKhxVJPE+QvziIOKbD+Dxc93Uisz92v/ZYpo4WR0TJuf+dk2xE8lW2WPJsA3mDFzXy8w==", + "engines": { + "node": ">=16" + } + }, + "node_modules/object-inspect": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/openapi-types": { + "version": "12.1.3", + "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.1.3.tgz", + "integrity": "sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==" + }, + "node_modules/ora": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", + "dependencies": { + "bl": "^4.1.0", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.5.0", + "is-interactive": "^1.0.0", + "is-unicode-supported": "^0.1.0", + "log-symbols": "^4.1.0", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==" + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-to-regexp": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.2.2.tgz", + "integrity": "sha512-GQX3SSMokngb36+whdpRXE+3f9V8UzyAorlYvOGx87ufGHehNTn5lCxrKtLyZ4Yl/wEKnNnr98ZzOwwDZV5ogw==" + }, + "node_modules/picocolors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { + "version": "6.12.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.12.1.tgz", + "integrity": "sha512-zWmv4RSuB9r2mYQw3zxQuHWeU+42aKi1wWig/j4ele4ygELZ7PEO6MM7rim9oAQH2A5MWfsAVf/jPvTPgCbvUQ==", + "dependencies": { + "side-channel": "^1.0.6" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/queue": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/queue/-/queue-6.0.2.tgz", + "integrity": "sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==", + "dependencies": { + "inherits": "~2.0.3" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/reftools": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/reftools/-/reftools-1.1.9.tgz", + "integrity": "sha512-OVede/NQE13xBQ+ob5CKd5KyeJYU2YInb1bmV4nRoOfquZPkAkxuOXicSe1PvqIuZZ4kD13sPKBbR7UFDmli6w==", + "funding": { + "url": "https://github.com/Mermade/oas-kit?sponsor=1" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" + }, + "node_modules/remove-undefined-objects": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/remove-undefined-objects/-/remove-undefined-objects-2.0.2.tgz", + "integrity": "sha512-b6x4MUtR4YBW1aCoGx3tE4mA2PFjiXSmtSdNmLexQzUdZa4ybnJAItXLKpkcVgCUJIzJtk2DFG402sMSEMlonQ==", + "engines": { + "node": ">=14" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/semver": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "engines": { + "node": ">=8" + } + }, + "node_modules/should": { + "version": "13.2.3", + "resolved": "https://registry.npmjs.org/should/-/should-13.2.3.tgz", + "integrity": "sha512-ggLesLtu2xp+ZxI+ysJTmNjh2U0TsC+rQ/pfED9bUZZ4DKefP27D+7YJVVTvKsmjLpIi9jAa7itwDGkDDmt1GQ==", + "dependencies": { + "should-equal": "^2.0.0", + "should-format": "^3.0.3", + "should-type": "^1.4.0", + "should-type-adaptors": "^1.0.1", + "should-util": "^1.0.0" + } + }, + "node_modules/should-equal": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/should-equal/-/should-equal-2.0.0.tgz", + "integrity": "sha512-ZP36TMrK9euEuWQYBig9W55WPC7uo37qzAEmbjHz4gfyuXrEUgF8cUvQVO+w+d3OMfPvSRQJ22lSm8MQJ43LTA==", + "dependencies": { + "should-type": "^1.4.0" + } + }, + "node_modules/should-format": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/should-format/-/should-format-3.0.3.tgz", + "integrity": "sha512-hZ58adtulAk0gKtua7QxevgUaXTTXxIi8t41L3zo9AHvjXO1/7sdLECuHeIN2SRtYXpNkmhoUP2pdeWgricQ+Q==", + "dependencies": { + "should-type": "^1.3.0", + "should-type-adaptors": "^1.0.1" + } + }, + "node_modules/should-type": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/should-type/-/should-type-1.4.0.tgz", + "integrity": "sha512-MdAsTu3n25yDbIe1NeN69G4n6mUnJGtSJHygX3+oN0ZbO3DTiATnf7XnYJdGT42JCXurTb1JI0qOBR65shvhPQ==" + }, + "node_modules/should-type-adaptors": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/should-type-adaptors/-/should-type-adaptors-1.1.0.tgz", + "integrity": "sha512-JA4hdoLnN+kebEp2Vs8eBe9g7uy0zbRo+RMcU0EsNy+R+k049Ki+N5tT5Jagst2g7EAja+euFuoXFCa8vIklfA==", + "dependencies": { + "should-type": "^1.3.0", + "should-util": "^1.0.0" + } + }, + "node_modules/should-util": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/should-util/-/should-util-1.0.1.tgz", + "integrity": "sha512-oXF8tfxx5cDk8r2kYqlkUJzZpDBqVY/II2WhvU0n9Y3XYvAYRmeaf1PvvIvTgPnv4KJ+ES5M0PyDq5Jp+Ygy2g==" + }, + "node_modules/side-channel": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", + "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", + "dependencies": { + "call-bind": "^1.0.7", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.4", + "object-inspect": "^1.13.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" + }, + "node_modules/ssri": { + "version": "10.0.6", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-10.0.6.tgz", + "integrity": "sha512-MGrFH9Z4NP9Iyhqn16sDtBpRRNJ0Y2hNa6D65h736fVSaPCHr4DM4sWUNvVaSuC+0OBGhwsrydQwmgfg5LncqQ==", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/swagger2openapi": { + "version": "7.0.8", + "resolved": "https://registry.npmjs.org/swagger2openapi/-/swagger2openapi-7.0.8.tgz", + "integrity": "sha512-upi/0ZGkYgEcLeGieoz8gT74oWHA0E7JivX7aN9mAf+Tc7BQoRBvnIGHoPDw+f9TXTW4s6kGYCZJtauP6OYp7g==", + "dependencies": { + "call-me-maybe": "^1.0.1", + "node-fetch": "^2.6.1", + "node-fetch-h2": "^2.3.0", + "node-readfiles": "^0.2.0", + "oas-kit-common": "^1.0.8", + "oas-resolver": "^2.5.6", + "oas-schema-walker": "^1.1.5", + "oas-validator": "^5.0.8", + "reftools": "^1.1.9", + "yaml": "^1.10.0", + "yargs": "^17.0.1" + }, + "bin": { + "boast": "boast.js", + "oas-validate": "oas-validate.js", + "swagger2openapi": "swagger2openapi.js" + }, + "funding": { + "url": "https://github.com/Mermade/oas-kit?sponsor=1" + } + }, + "node_modules/timers-ext": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.8.tgz", + "integrity": "sha512-wFH7+SEAcKfJpfLPkrgMPvvwnEtj8W4IurvEyrKsDleXnKLCDw71w8jltvfLa8Rm4qQxxT4jmDBYbJG/z7qoww==", + "dependencies": { + "es5-ext": "^0.10.64", + "next-tick": "^1.1.0" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/ts-algebra": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/ts-algebra/-/ts-algebra-1.2.2.tgz", + "integrity": "sha512-kloPhf1hq3JbCPOTYoOWDKxebWjNb2o/LKnNfkWhxVVisFFmMJPPdJeGoGmM+iRLyoXAR61e08Pb+vUXINg8aA==" + }, + "node_modules/ts-morph": { + "version": "17.0.1", + "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-17.0.1.tgz", + "integrity": "sha512-10PkHyXmrtsTvZSL+cqtJLTgFXkU43Gd0JCc0Rw6GchWbqKe0Rwgt1v3ouobTZwQzF1mGhDeAlWYBMGRV7y+3g==", + "dependencies": { + "@ts-morph/common": "~0.18.0", + "code-block-writer": "^11.0.3" + } + }, + "node_modules/type": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.3.tgz", + "integrity": "sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ==" + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "node_modules/validate-npm-package-name": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-5.0.1.tgz", + "integrity": "sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/validate.io-array": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/validate.io-array/-/validate.io-array-1.0.6.tgz", + "integrity": "sha512-DeOy7CnPEziggrOO5CZhVKJw6S3Yi7e9e65R1Nl/RTN1vTQKnzjfvks0/8kQ40FP/dsjRAOd4hxmJ7uLa6vxkg==" + }, + "node_modules/validate.io-function": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/validate.io-function/-/validate.io-function-1.0.2.tgz", + "integrity": "sha512-LlFybRJEriSuBnUhQyG5bwglhh50EpTL2ul23MPIuR1odjO7XaMLFV8vHGwp7AZciFxtYOeiSCT5st+XSPONiQ==" + }, + "node_modules/validate.io-integer": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/validate.io-integer/-/validate.io-integer-1.0.5.tgz", + "integrity": "sha512-22izsYSLojN/P6bppBqhgUDjCkr5RY2jd+N2a3DCAUey8ydvrZ/OkGvFPR7qfOpwR2LC5p4Ngzxz36g5Vgr/hQ==", + "dependencies": { + "validate.io-number": "^1.0.3" + } + }, + "node_modules/validate.io-integer-array": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/validate.io-integer-array/-/validate.io-integer-array-1.0.0.tgz", + "integrity": "sha512-mTrMk/1ytQHtCY0oNO3dztafHYyGU88KL+jRxWuzfOmQb+4qqnWmI+gykvGp8usKZOM0H7keJHEbRaFiYA0VrA==", + "dependencies": { + "validate.io-array": "^1.0.3", + "validate.io-integer": "^1.0.4" + } + }, + "node_modules/validate.io-number": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/validate.io-number/-/validate.io-number-1.0.3.tgz", + "integrity": "sha512-kRAyotcbNaSYoDnXvb4MHg/0a1egJdLwS6oJ38TJY7aw9n93Fl/3blIXdyYvPOp55CNxywooG/3BcrwNrBpcSg==" + }, + "node_modules/wcwidth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", + "dependencies": { + "defaults": "^1.0.3" + } + }, + "node_modules/web-streams-polyfill": { + "version": "4.0.0-beta.3", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz", + "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==", + "engines": { + "node": ">= 14" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/whatwg-fetch": { + "version": "3.6.20", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.20.tgz", + "integrity": "sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg==" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "engines": { + "node": ">=10" + } + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "engines": { + "node": ">=12" + } + } + } +} diff --git a/.api/apis/tron/package.json b/.api/apis/tron/package.json new file mode 100644 index 0000000..d491851 --- /dev/null +++ b/.api/apis/tron/package.json @@ -0,0 +1,11 @@ +{ + "name": "@api/tron", + "version": "0.0.0", + "main": "./index.ts", + "types": "./index.d.ts", + "dependencies": { + "api": "^6.1.1", + "json-schema-to-ts": "^2.8.0-beta.0", + "oas": "^20.10.3" + } +} diff --git a/.api/apis/tron/schemas.ts b/.api/apis/tron/schemas.ts new file mode 100644 index 0000000..c3b53df --- /dev/null +++ b/.api/apis/tron/schemas.ts @@ -0,0 +1,209 @@ +const AccountCreateaccount = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner_address is an activated account,converted to a hex String.If the owner_address has enough bandwidth obtained by freezing TRX, then creating an account will only consume bandwidth , otherwise, 0.1 TRX will be burned to pay for bandwidth, and at the same time, 1 TRX will be required to be created.","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"account_address":{"type":"string","description":"account_address is the address of the new account, converted to a hex string, this address needs to be calculated in advance","default":"TFgY1uN8buRxAtV2r6Zy5sG3ACko6pJT1y"},"visible":{"type":"boolean","description":"Optional,whether the address is in base58 format","default":true},"permission_id":{"type":"integer","description":"Optional,for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const AccountGetaccount = {"body":{"type":"object","properties":{"address":{"type":"string","description":"address should be converted to a hex string","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"visible":{"type":"boolean","description":"Optional,whether the address is in base58 format","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const AccountResourcesFreezebalance = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address, default hexString","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"frozen_balance":{"type":"integer","description":"TRX stake amount, the unit is sun","default":10000000,"format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"frozen_duration":{"type":"integer","description":"Lock-up duration for this stake, now the value can only be 3 days. It is not allowed to unstake within 3 days after the stake. You can unstake TRX after the 3 lock-up days","default":3,"format":"int32","minimum":-2147483648,"maximum":2147483647},"resource":{"type":"string","description":"TRX stake type, 'BANDWIDTH' or 'ENERGY'","default":"ENERGY"},"receiver_address":{"type":"string","description":"Optional,the address that will receive the resource, default hexString"},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional. Defaults to false. Whether addresses are in base58check format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const AccountResourcesUnfreezebalance = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address, default hexString","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"resource":{"type":"string","description":"Stake TRX for 'BANDWIDTH' or 'ENERGY'","default":"BANDWIDTH"},"receiver_address":{"type":"string","description":"Optional,the address that will lose the resource, default hexString"},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Accountpermissionupdate = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"owner address","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"actives":{"type":"string","description":"active permission","default":"[{ \t\"type\": 2, \t\"permission_name\": \"active0\", \t\"threshold\": 2, \t\"operations\": \"7fff1fc0037e0000000000000000000000000000000000000000000000000000\", \t\"keys\": [{ \t\t\"address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \t\t\"weight\": 1 \t}, { \t\t\"address\": \"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1\", \t\t\"weight\": 1 \t}] }]","format":"json"},"owner":{"type":"string","description":"owner permission","default":"{ \t\"type\": 0, \t\"permission_name\": \"owner\", \t\"threshold\":1, \t\"keys\": [{ \t\t\"address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \t\t\"weight\": 1 \t}] }","format":"json"},"witness":{"type":"string","description":"witness permission","format":"json"},"visible":{"type":"boolean","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Broadcasthex = {"body":{"type":"object","required":["transaction"],"properties":{"transaction":{"type":"string","description":"Transaction hex after sign","default":"0A8A010A0202DB2208C89D4811359A28004098A4E0A6B52D5A730802126F0A32747970652E676F6F676C65617069732E636F6D2F70726F746F636F6C2E5472616E736665724173736574436F6E747261637412390A07313030303030311215415A523B449890854C8FC460AB602DF9F31FE4293F1A15416B0580DA195542DDABE288FEC436C7D5AF769D24206412418BF3F2E492ED443607910EA9EF0A7EF79728DAAAAC0EE2BA6CB87DA38366DF9AC4ADE54B2912C1DEB0EE6666B86A07A6C7DF68F1F9DA171EEE6A370B3CA9CBBB00"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Broadcasttransaction = {"body":{"type":"object","required":["RAW_BODY"],"properties":{"RAW_BODY":{"type":"object","properties":{"txID":{"type":"string"},"visible":{"type":"boolean"},"raw_data":{"type":"string","default":"{\"contract\":[{\"parameter\":{\"value\":{\"amount\":1000,\"owner_address\":\"41608f8da72479edc7dd921e4c30bb7e7cddbe722e\",\"to_address\":\"41e9d79cc47518930bc322d9bf7cddd260a0260a8d\"},\"type_url\":\"type.googleapis.com/protocol.TransferContract\"},\"type\":\"TransferContract\"}],\"ref_block_bytes\":\"5e4b\",\"ref_block_hash\":\"47c9dc89341b300d\",\"expiration\":1591089627000,\"timestamp\":1591089567635}","format":"json"},"raw_data_hex":{"type":"string","default":"0a025e4b220847c9dc89341b300d40f8fed3a2a72e5a66080112620a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412310a1541608f8da72479edc7dd921e4c30bb7e7cddbe722e121541e9d79cc47518930bc322d9bf7cddd260a0260a8d18e8077093afd0a2a72e"},"signature":{"type":"array","items":{"type":"string"}}}}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"result":{"type":"boolean","default":true,"examples":[true]}},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Cancelallunfreezev2 = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address, default hexString","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Clearabi = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address of the smart contract. If visible=true, use base58check format, otherwise use hex format.","default":"TSNEe5Tf4rnc9zPMNXfaTF5fZfHDDH8oyW"},"contract_address":{"type":"string","description":"Smart contract address. If visible=true, use base58check format, otherwise use hex format.","default":"TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs"},"visible":{"type":"boolean","description":"Optional. Defaults to false. Whether addresses are in base58check format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Createaddress = {"body":{"type":"object","required":["value"],"properties":{"value":{"type":"string","description":"value is the password, converted from ascii to hex. i.e. the pass phrase.","default":"7465737470617373776f7264"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"base58checkAddress":{"type":"string","examples":["T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb"]},"value":{"type":"string","examples":["T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb"]}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Createassetissue = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address, default hexString","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"name":{"type":"string","description":"Token name, default hexString","default":"0x6173736574497373756531353330383934333132313538"},"abbr":{"type":"string","default":"0x6162627231353330383934333132313538"},"total_supply":{"type":"integer","description":"Token total supply","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"trx_num":{"type":"integer","description":"Define the price by the ratio of trx_num/num(The unit of 'trx_num' is SUN)","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"num":{"type":"integer","description":"Define the price by the ratio of trx_num/num","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"start_time":{"type":"integer","description":"ICO start time","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"end_time":{"type":"integer","description":"ICO end time","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"description":{"type":"string","description":"Token description, default hexString","default":"0x4578616d706c654465736372697074696f6e"},"url":{"type":"string","description":"Token official website url, default hexString","default":"0x7777772e6578616d706c652e636f6d"},"free_asset_net_limit":{"type":"integer","description":"Token free asset net limit","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"public_free_asset_net_limit":{"type":"integer","description":"Token public free asset net limit","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"frozen_supply":{"type":"string","description":"Token frozen supply","default":"{\"frozen_amount\":1,\"frozen_days\":2}","format":"json"},"precision":{"type":"integer","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"}} as const +; +const Createshieldedcontractparameters = {"body":{"type":"object","required":["shielded_TRC20_contract_address"],"properties":{"ovk":{"type":"string"},"from_amount":{"type":"string"},"to_amount":{"type":"string"},"transparent_to_address":{"type":"string"},"shielded_TRC20_contract_address":{"type":"string"},"shielded_receives":{"type":"object","properties":{}},"shielded_spends":{"type":"object","properties":{}},"ask":{"type":"string"},"nsk":{"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Createspendauthsig = {"body":{"type":"object","required":["ask","tx_hash","alpha"],"properties":{"ask":{"type":"string"},"tx_hash":{"type":"string"},"alpha":{"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"value":{"type":"string","examples":["1947036add76206b9f9b03ffd9d9526c5547db955387798f15c5e7c911f41eadc23eee214e64be792a404b77c64335a675c3489ca63d0d471de484c3a606d002"]}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Createtransaction = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner_address is the transfer address, converted to a hex string","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"to_address":{"type":"string","description":"To_address is the transfer address, converted to a hex string","default":"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1"},"amount":{"type":"integer","description":"Amount is the transfer amount,the unit is sun","default":1000,"format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional.Whehter the address is in base58 format.","default":true},"extra_data":{"type":"string","description":"Optional, totes on the transaction, HEX format"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Createwitness = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address, default hexString","default":"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1"},"url":{"type":"string","description":"Website url, default hexString","default":"007570646174654e616d6531353330363038383733343633"},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Delegateresource1 = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address, default hexString","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"receiver_address":{"type":"string","description":"Resource receiver address","default":"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1"},"balance":{"type":"integer","description":"Amount of TRX staked for resources to be delegated, unit is sun","default":1000000,"format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"resource":{"type":"string","description":"Resource type: 'BANDWIDTH' or 'ENERGY'","default":"BANDWIDTH"},"lock":{"type":"boolean","description":"Whether it is locked (default is false), if it is set to true, the delegated resources cannot be undelegated within the lock period specified by `lock_period`. When the lock time is not over, if the owner delegates the same type of resources using the lock to the same address, the lock time will be set to the value specified by `lock_period`. If it is false, that means there is no lock-up period for this resource delegation, and the resource for the target address can be canceled at any time. The default value of this field is false","default":false},"lock_period":{"type":"integer","description":"Lock time,The unit is block interval(3 seconds), indicates the time of how many blocks which the delegation will be locked. Only when lock is true, this field is valid. If the delegate lock period is 1 day, the lock_period is: 28800. The minimum value of lock_period is the remaining lock period of this type of resource that was delegated last time, and the maximum value is 864000 (30 days). If lock is true and lock_period is not set or set to 0, lock_period will be set to the default value 86400 (3 days) automatically","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Easytransfer = {"body":{"type":"object","required":["passPhrase","toAddress","amount"],"properties":{"passPhrase":{"type":"string","description":"Password converted from ascii to hex"},"toAddress":{"type":"string","description":"Recipient address converted into a hex string"},"amount":{"type":"integer","description":"Amount of TRX to transfer expressed in SUN.","format":"int32","minimum":-2147483648,"maximum":2147483647}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Easytransferasset = {"body":{"type":"object","properties":{"passPhrase":{"type":"string","description":"Password, default hexString"},"toAddress":{"type":"string","description":"To address, default hexString","default":"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1"},"assetId":{"type":"string","description":"Token id","default":"1000001"},"amount":{"type":"integer","description":"Transfer token amount,the unit is the smallest unit.","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Easytransferassetbyprivate = {"body":{"type":"object","properties":{"privateKey":{"type":"string","description":"Private key, default hexString","default":"D95611A9AF2A2A45359106222ED1AFED48853D9A44DEFF8DC7913F5CBA727366"},"toAddress":{"type":"string","description":"To address, default hexString","default":"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1"},"assetId":{"type":"string","description":"Token id","default":"1000001"},"amount":{"type":"integer","description":"Token transfer amount","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Easytransferbyprivate = {"body":{"type":"object","required":["privateKey","toAddress","amount"],"properties":{"privateKey":{"type":"string","description":"passPhrase is the private key in hex string format"},"toAddress":{"type":"string","description":"toAddress is the recipient address, converted into a hex string;"},"amount":{"type":"integer","description":"amount is the amount of TRX to transfer in SUN.","format":"int32","minimum":-2147483648,"maximum":2147483647}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Estimateenergy = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address that triggers the contract. If visible=true, use base58check format, otherwise use hex format. For constant call you can use the all-zero address.","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"contract_address":{"type":"string","description":"Smart contract address. If visible=true, use base58check format, otherwise use hex format.","default":"TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs"},"function_selector":{"type":"string","description":"Function call, must not be left blank.","default":"balanceOf(address)"},"parameter":{"type":"string","description":"Parameter encoding needs to be in accordance with the ABI rules, the rules are more complicated, users can use the ethers library to encode,For details, please refer to the document-Guide-Smart Contract-Best Practice-Parameter Encoding and Decoding.","default":"000000000000000000000000a614f803b6fd780986a42c78ec9c7f77e6ded13c"},"data":{"type":"string","description":"The bytecode of the contract or the data for interacting with smart contracts, including the contract function and parameters. You can choose to use this field, or you can choose to use function_selector and parameter for contract interaction. When both of data and function_selector exist, function_selector is preferred"},"call_value":{"type":"integer","description":"Amount of TRX transferred with this transaction, measured in SUN (1 TRX = 1,000,000 SUN).","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"call_token_value":{"type":"integer","description":"Amount of TRC10 token transferred with this transaction","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"token_id":{"type":"integer","description":"TRC10 token id","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"visible":{"type":"boolean","description":"Optional.Whehter the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean","default":true,"examples":[true]}}},"constant_result":{"type":"array","items":{"type":"string","examples":["000000000000000000000000000000000000000000000000000009a1832a6361"]}}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Exchangecreate = {"body":{"type":"object","properties":{"owner_address":{"type":"string","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"first_token_id":{"type":"string","description":"The first token's id, default hexString","default":"31303030343837"},"first_token_balance":{"type":"integer","description":"The first token's balance","default":100,"format":"int32","minimum":-2147483648,"maximum":2147483647},"second_token_id":{"type":"string","description":"The second token's id, default hexString","default":"31303030303031"},"second_token_balance":{"type":"integer","description":"The second token's balance","default":100,"format":"int32","minimum":-2147483648,"maximum":2147483647},"permission_id":{"type":"integer","description":"Optional,for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional,whether the address is in base58 format","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Exchangeinject = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Transaction to the creator's address in hexString format","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"exchange_id":{"type":"integer","description":"Transaction Pair ID","default":12,"format":"int32","minimum":-2147483648,"maximum":2147483647},"token_id":{"type":"string","description":"Token ID; usually is the token name, which needs to be in hexString format.","default":"31303030343837"},"quant":{"type":"integer","description":"Number of capital injection tokens.","default":100,"format":"int32","minimum":-2147483648,"maximum":2147483647},"permission_id":{"type":"integer","description":"Optional,for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional,whether the address is in base58 format","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Exchangetransaction = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Trader's wallet address, in hex string format. This wallet contains the tokens you wish to sell, in order to gain the other token.","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"exchange_id":{"type":"integer","description":"Transaction Pair ID","default":12,"format":"int32","minimum":-2147483648,"maximum":2147483647},"token_id":{"type":"string","description":"ID of the sold token, in hexString format. For example, if you wanted to trade TRX for another token, then the TRX id of \"5f\" goes in this parameter.","default":"31303030343837"},"quant":{"type":"integer","description":"Quantity of the token being sold. If TRX being sold, need to express in units of SUN.","default":100,"format":"int32","minimum":-2147483648,"maximum":2147483647},"expected":{"type":"integer","description":"Expected quantity of the token being purchased.","default":10,"format":"int32","minimum":-2147483648,"maximum":2147483647},"permission_id":{"type":"integer","description":"Optional,for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional,whether the address is in base58 format","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Exchangewithdraw = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Address of the transaction to the creator, in hexString format","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"exchange_id":{"type":"integer","description":"Transaction Pair ID","default":12,"format":"int32","minimum":-2147483648,"maximum":2147483647},"token_id":{"type":"string","description":"Token ID in hexString format; Usually is the token name.","default":"31303030343837"},"quant":{"type":"integer","description":"Number of tokens divested.","default":100,"format":"int32","minimum":-2147483648,"maximum":2147483647},"permission_id":{"type":"string","description":"Optional,for multi-signature use"},"visible":{"type":"boolean","description":"Optional,whether the address is in base58 format","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Freezebalancev21 = {"body":{"type":"object","required":["owner_address","frozen_balance","resource"],"properties":{"owner_address":{"type":"string","description":"Owner address, default hexString","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"frozen_balance":{"type":"integer","description":"TRX stake amount, the unit is sun","default":10000000,"format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"resource":{"type":"string","description":"TRX stake type, 'BANDWIDTH' or 'ENERGY'","default":"ENERGY"},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional. Default is false. Whether addresses are in base58check format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Generateaddress = {"response":{"200":{"type":"object","properties":{"privateKey":{"type":"string","examples":["9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"]},"address":{"type":"string","examples":["TDp4x8kCJ6aHz8wnqZgkaVQAm2ajH1og3L"]},"hexAddress":{"type":"string","examples":["412a260a110bc7b03f19c40a0bd04ff2c5dcb57594"]}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getaccountbalance = {"body":{"type":"object","properties":{"account_identifier":{"type":"string","default":"{ \"address\": \"TLLM21wteSPs4hKjbxgmH1L6poyMjeTbHm\" }","format":"json"},"block_identifier":{"type":"string","default":"{ \"hash\": \"0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9\", \"number\": 68682 }","format":"json"},"visible":{"type":"boolean","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"balance":{"type":"integer","default":0,"examples":[64086449348265040]},"block_identifier":{"type":"object","properties":{"hash":{"type":"string","examples":["0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9"]},"number":{"type":"integer","default":0,"examples":[68682]}}}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getaccountnet = {"body":{"type":"object","properties":{"address":{"type":"string","description":"Account address, converted to a hex string.","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"visible":{"type":"boolean","description":"Optional,whether the address is in base58 format","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getaccountresource = {"body":{"type":"object","properties":{"address":{"type":"string","description":"Address","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"visible":{"type":"boolean","description":"Optional,whether the address is in base58 format","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getakfromask = {"body":{"type":"object","required":["value"],"properties":{"value":{"type":"string","default":"23d11537676610c287ffcd1bc33d650df37fc90d13bb65356fbc9045cfb91705"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"value":{"type":"string","examples":["72b041a8006a02a995c24f5b8531a62008c8c54a1979622dc4ea6f54a506732d"]}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getassetissuebyaccount = {"body":{"type":"object","properties":{"address":{"type":"string","description":"Address is the Token Issuer account address","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"visible":{"type":"boolean","description":"Optional. Defaults to false. Whether addresses are in base58check format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"}} as const +; +const Getassetissuebyid = {"body":{"type":"object","properties":{"value":{"type":"integer","description":"The ID of the TRC10 token.","default":1000001,"format":"int32","minimum":-2147483648,"maximum":2147483647}},"$schema":"https://json-schema.org/draft/2020-12/schema#"}} as const +; +const GetassetissuebynameCopy = {"body":{"type":"object","properties":{"value":{"type":"string","description":"TRC 10 token name, default hexString","default":"62747474657374"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"}} as const +; +const GetassetissuelistbynameCopy = {"body":{"type":"object","properties":{"value":{"type":"string","description":"Name of the TRC 10 token, default hexString","default":"62747474657374"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"}} as const +; +const Getavailableunfreezecount1 = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address, default hexString","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getbandwidthprices = {"response":{"200":{"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getblock1 = {"body":{"type":"object","properties":{"id_or_num":{"type":"string","description":"id_or_num can be the block height or the block hash. No value entered means to query the latest block.","default":"1000000"},"detail":{"type":"boolean","description":"true means query the entire block information include the header and body. false means only query the block header information.","default":false}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getblockbalance = {"body":{"type":"object","properties":{"hash":{"type":"string","default":"0000000001f5b9ca67c722d9263879696c92e8e383d4f0b31c15a91b8a249029"},"number":{"type":"integer","default":32881098,"format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"block_identifier":{"type":"object","properties":{"hash":{"type":"string","examples":["000000000000dc2a3731e28a75b49ac1379bcc425afc95f6ab3916689fbb0189"]},"number":{"type":"integer","default":0,"examples":[56362]}}},"timestamp":{"type":"integer","default":0,"examples":[1530060672000]},"transaction_balance_trace":{"type":"array","items":{"type":"object","properties":{"transaction_identifier":{"type":"string","examples":["e6cabb1833cd1f795eed39d8dd7689eaa70e5bb217611766c74c7aa9feea80df"]},"operation":{"type":"array","items":{"type":"object","properties":{"operation_identifier":{"type":"integer","default":0,"examples":[0]},"address":{"type":"string","examples":["TPttBLmFuykRi83y9HxDoEWxTQw6CCcQ4p"]},"amount":{"type":"integer","default":0,"examples":[-100000]}}}},"type":{"type":"string","examples":["TransferContract"]},"status":{"type":"string","examples":["SUCCESS"]}}}}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getblockbyid = {"body":{"type":"object","properties":{"value":{"type":"string","description":"Block ID","default":"00000000000f424013e51b18e0782a32fa079ddafdb2f4c343468cf8896dc887"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"blockID":{"type":"string","examples":["00000000000000c82a54a3bbdc956e1ddebc903f29b8daf28505b56f55a3f87d"]},"block_header":{"type":"object","properties":{"raw_data":{"type":"object","properties":{"number":{"type":"integer","default":0,"examples":[200]},"txTrieRoot":{"type":"string","examples":["0000000000000000000000000000000000000000000000000000000000000000"]},"witness_address":{"type":"string","examples":["411661f25387370c9cd3a9a5d97e60ca90f4844e7e"]},"parentHash":{"type":"string","examples":["00000000000000c7c8f27726916dfddca3c1c3481eb01da8a08938263674cea4"]},"timestamp":{"type":"integer","default":0,"examples":[1529892138000]}}},"witness_signature":{"type":"string","examples":["691e9116963b54ef7eb07692266319b029217e4d4ae8e8cb97e341617460f3822eff149c690aac6f2e0ad27d0af4fa8824d113d7a71c091245f778438ca4bde801"]}}}},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getblockbylimitnext = {"body":{"type":"object","properties":{"startNum":{"type":"integer","description":"Starting block height, including this block.","default":1,"format":"int32","minimum":-2147483648,"maximum":2147483647},"endNum":{"type":"integer","description":"Ending block height, excluding that block.","default":5,"format":"int32","minimum":-2147483648,"maximum":2147483647}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getburntrx = {"response":{"200":{"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getcandelegatedmaxsize = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address, default hexString","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"type":{"type":"integer","description":"resource type, 0 is bandwidth, 1 is energy","default":0,"format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getcanwithdrawunfreezeamount1 = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address, default hexString","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"timestamp":{"type":"integer","description":"query cutoff timestamp, in milliseconds.","default":1667977444000,"format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getcontractinfo = {"body":{"type":"object","properties":{"value":{"type":"string","description":"Contract address, converted to a hex string.","default":"TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs"},"visible":{"type":"boolean","description":"Optional, is address in visible format(base58check) or hex?","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getdelegatedresource = {"body":{"type":"object","required":["fromAddress","toAddress"],"properties":{"fromAddress":{"type":"string","description":"Energy from address, default hexString","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"toAddress":{"type":"string","description":"Energy delegation information","default":"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1"},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getdelegatedresourceaccountindex = {"body":{"type":"object","properties":{"value":{"type":"string","description":"Address, default hexString","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getdelegatedresourceaccountindexv21 = {"body":{"type":"object","properties":{"value":{"type":"string","description":"account address, default hexString","default":"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1"},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getdelegatedresourcev2 = {"body":{"type":"object","properties":{"fromAddress":{"type":"string","description":"resource from address, default hexString","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"toAddress":{"type":"string","description":"resource to address","default":"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1"},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getdiversifier = {"response":{"200":{"type":"object","properties":{"d":{"type":"string","examples":["dd6b441bd5dcb9c25ec41f"]}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getexpandedspendingkey = {"body":{"type":"object","properties":{"value":{"type":"string","description":"HEX of Spending Key","default":"09124de6a534661ef1cfad0335832445a3b83c08e885881a68a52cf4dc735e68"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"ask":{"type":"string","examples":["23d11537676610c287ffcd1bc33d650df37fc90d13bb65356fbc9045cfb91705"]},"nsk":{"type":"string","examples":["da6542f57f6f730cb31b401b9ca8660589d8a765405c6d6f48fd392ac5360b0a"]},"ovk":{"type":"string","examples":["e73f5383fdeacbb282db951afba01e607916c8106b316c55544fac84b2efbdc4"]}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getincomingviewingkey = {"body":{"type":"object","required":["ak","nk"],"properties":{"ak":{"type":"string","default":"72b041a8006a02a995c24f5b8531a62008c8c54a1979622dc4ea6f54a506732d"},"nk":{"type":"string","default":"da6542f57f6f730cb31b401b9ca8660589d8a765405c6d6f48fd392ac5360b0a"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"ivk":{"type":"string","examples":["6896b46a8355ae75896900ac617293d98e1b48fd885ed484a7cbddd566762705"]}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getnewshieldedaddress = {"response":{"200":{"type":"object","properties":{"sk":{"type":"string","examples":["0bfc211444fa877ba546ffb3a64e8b7aa58dd7bdd23a7b22166e9da923add0e6"]},"ask":{"type":"string","examples":["264c351e5a154555b1ec7822f9bfc0faa5ced9d75b17ed1552699a20b18f7c07"]},"nsk":{"type":"string","examples":["ebd5bf67f68de464c8a109b389ff4d07912ebe11e8b3d034cf505b35c8d5a907"]},"ovk":{"type":"string","examples":["a8fa18b039e2cd8aeb04c8cf299b2bbc43cb5ab4dd67eec8884e3563223e5908"]},"ak":{"type":"string","examples":["0648c0b20fa5eab112d466f75b174d1c142bf35318d2f50d63c6b3b343c8c397"]},"nk":{"type":"string","examples":["a45852bb5b9e933266d5fab6062baa456b149329f8081817ef868923f87b2f9d"]},"ivk":{"type":"string","examples":["9c3eacfe786e67c6f3b567cfcf129dcfdc21347ce6f192cc3ca1e994df570c05"]},"d":{"type":"string","examples":["987adf3b4d8da446327d17"]},"pkD":{"type":"string","examples":["09f3c4576c4f836b3472a6a5738606866607a6ffcd1c7299e31ec40455b1cd35"]},"payment_address":{"type":"string","examples":["ztron1npad7w6d3kjyvvnazuyl83zhd38cx6e5w2n22uuxq6rxvpaxllx3cu5euv0vgpz4k8xn2rsga28"]}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getnextmaintenancetime = {"response":{"200":{"type":"object","properties":{"num":{"type":"integer","default":0,"examples":[1591099200000]}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getnkfromnsk = {"body":{"type":"object","required":["value"],"properties":{"value":{"type":"string","default":"da6542f57f6f730cb31b401b9ca8660589d8a765405c6d6f48fd392ac5360b0a"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"value":{"type":"string","examples":["2d817ea2e005e174d9291d0bd0605e11cb79e3f5855780521bc300d0636a58df"]}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getpaginatedassetissuelist = {"body":{"type":"object","properties":{"offset":{"type":"integer","description":"The index of the start token","default":0,"format":"int32","minimum":-2147483648,"maximum":2147483647},"limit":{"type":"integer","description":"The amount of tokens per page","default":20,"format":"int32","minimum":-2147483648,"maximum":2147483647}},"$schema":"https://json-schema.org/draft/2020-12/schema#"}} as const +; +const Getpendingsize = {"response":{"200":{"type":"object","properties":{"pendingSize":{"type":"integer","default":0,"examples":[126]}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getproposalbyid = {"body":{"type":"object","properties":{"id":{"type":"integer","default":1,"format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getspendingkey = {"response":{"200":{"type":"object","properties":{"value":{"type":"string","examples":["09124de6a534661ef1cfad0335832445a3b83c08e885881a68a52cf4dc735e68"]}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Gettransactionfrompending = {"body":{"type":"object","properties":{"value":{"type":"string","default":"f34f1c799700a9d83b67fdcadd7be697010a8dbbcd520de4ac46a648e3e7ae3d"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"ret":{"type":"array","items":{"type":"object","properties":{"contractRet":{"type":"string","examples":["SUCCESS"]}}}},"signature":{"type":"array","items":{"type":"string","examples":["693ad22a762a6228423f77cdb36440a3b93d7b1cbec7aa3822454e6146fb2af5075e541f298fcc8d68e51f3d0ae34e7b713e4f1582e70b0eba1b1436c848b15a1b"]}},"txID":{"type":"string","examples":["f34f1c799700a9d83b67fdcadd7be697010a8dbbcd520de4ac46a648e3e7ae3d"]},"raw_data":{"type":"object","properties":{"contract":{"type":"array","items":{"type":"object","properties":{"parameter":{"type":"object","properties":{"value":{"type":"object","properties":{"amount":{"type":"integer","default":0,"examples":[234000000]},"owner_address":{"type":"string","examples":["4192c47b086eae54ed142d75ce4806df751bac7551"]},"to_address":{"type":"string","examples":["411113df41d4f3b8b46acc40c266bee87eca42c73d"]}}},"type_url":{"type":"string","examples":["type.googleapis.com/protocol.TransferContract"]}}},"type":{"type":"string","examples":["TransferContract"]}}}},"ref_block_bytes":{"type":"string","examples":["6d64"]},"ref_block_hash":{"type":"string","examples":["f35991f9b546f69f"]},"expiration":{"type":"integer","default":0,"examples":[1616394384000]},"timestamp":{"type":"integer","default":0,"examples":[1616394325960]}}},"raw_data_hex":{"type":"string","examples":["0a026d642208f35991f9b546f69f4080e5f3c4852f5a68080112640a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412330a154192c47b086eae54ed142d75ce4806df751bac75511215411113df41d4f3b8b46acc40c266bee87eca42c73d18809dca6f70c89ff0c4852f"]}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Gettransactioninfobyblocknum = {"body":{"type":"object","properties":{"num":{"type":"integer","description":"Block height","default":1000000,"format":"int32","minimum":-2147483648,"maximum":2147483647}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Gettransactioninfobyid = {"body":{"type":"object","properties":{"value":{"type":"string","description":"Transaction hash, i.e. transaction id.","default":"7c2d4206c03a883dd9066d620335dc1be272a8dc733cfa3f6d10308faa37facc"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"id":{"type":"string","examples":["d0807adb3c5412aa150787b944c96ee898c997debdc27e2f6a643c771edb5933"]},"fee":{"type":"integer","default":0,"examples":[2790]},"blockNumber":{"type":"integer","default":0,"examples":[5467102]},"blockTimeStamp":{"type":"integer","default":0,"examples":[1546455621000]},"contractResult":{"type":"array","items":{"type":"string","examples":[""]}},"receipt":{"type":"object","properties":{"net_fee":{"type":"integer","default":0,"examples":[2790]}}}},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Gettransactionlistfrompending = {"response":{"200":{"type":"object","properties":{"txId":{"type":"array","items":{"type":"string","examples":["48ce8d57e83cc6c28737b785af4d0732c70fa73c2900ed4291b376364872775a"]}}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Gettransactionsign = {"body":{"type":"object","required":["transaction","privateKey"],"properties":{"transaction":{"type":"object","description":"Transaction is a contract created by http api","properties":{"txID":{"type":"string"},"visible":{"type":"boolean"},"raw_data":{"type":"string","default":"{\"contract\":[{\"parameter\":{\"value\":{\"amount\":1000,\"owner_address\":\"41608f8da72479edc7dd921e4c30bb7e7cddbe722e\",\"to_address\":\"41e9d79cc47518930bc322d9bf7cddd260a0260a8d\"},\"type_url\":\"type.googleapis.com/protocol.TransferContract\"},\"type\":\"TransferContract\"}],\"ref_block_bytes\":\"5e4b\",\"ref_block_hash\":\"47c9dc89341b300d\",\"expiration\":1591089627000,\"timestamp\":1591089567635}","format":"json"},"raw_data_hex":{"type":"string","default":"0a025e4b220847c9dc89341b300d40f8fed3a2a72e5a66080112620a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412310a1541608f8da72479edc7dd921e4c30bb7e7cddbe722e121541e9d79cc47518930bc322d9bf7cddd260a0260a8d18e8077093afd0a2a72e"},"signature":{"type":"array","items":{"type":"string"}}}},"privateKey":{"type":"string","description":"privateKey is the user private key","default":"your private key"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Gettriggerinputforshieldedtrc20Contract = {"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Getzenpaymentaddress = {"body":{"type":"object","required":["ivk","d"],"properties":{"ivk":{"type":"string"},"d":{"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"pkD":{"type":"string","examples":["297198e7d4a024a3b5ef9b68ed15e7463fbf03e6aa590aa551d7bd0c1cfa828d"]},"payment_address":{"type":"string","examples":["ztron1m445gx74mjuuyhkyru5hrx886jszfga4a7dk3mg4uarrl0cru649jz4928tm6rqul2pg645hqv5"]}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const HttpGetapprovedlist = {"body":{"type":"object","required":["signature","raw_data"],"properties":{"signature":{"type":"array","description":"The signature list of transaction","default":["e0bd4a60f1b3c89d4da3894d400e7e32385f6dd690aee17fdac4e016cdb294c5128b66f62f3947a7182c015547496eba95510c113bda2a361d811b829343c36501","596ead6439d0f381e67f30b1ed6b3687f2bd53ce5140cdb126cfe4183235804741eeaf79b4e91f251fd7042380a9485d4d29d67f112d5387bc7457b355cd3c4200"],"items":{"type":"string"}},"raw_data":{"type":"string","description":"The transaction raw data","default":"{ \"contract\": [ { \"parameter\": { \"value\": { \"amount\": 1000000, \"owner_address\": \"41A7D8A35B260395C14AA456297662092BA3B76FC0\", \"to_address\": \"415A523B449890854C8FC460AB602DF9F31FE4293F\" }, \"type_url\": \"type.googleapis.com/protocol.TransferContract\" }, \"type\": \"TransferContract\" } ], \"ref_block_bytes\": \"163d\", \"ref_block_hash\": \"77ef4ace148b05ba\", \"expiration\": 1555664823000, \"timestamp\": 1555664763418 }","format":"json"},"visible":{"type":"boolean","description":"Whether the account address format is base58check"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Isshieldedtrc20Contractnotespent = {"body":{"type":"object","required":["note","ak","nk","position","shielded_TRC20_contract_address"],"properties":{"note":{"type":"object","properties":{}},"ak":{"type":"string"},"nk":{"type":"string"},"position":{"type":"integer","format":"int32","minimum":-2147483648,"maximum":2147483647},"shielded_TRC20_contract_address":{"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"is_spent":{"type":"boolean","default":true,"examples":[true]}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Participateassetissue = {"body":{"type":"object","properties":{"to_address":{"type":"string","default":"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1"},"owner_address":{"type":"string","description":"The participant address, default hexString","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"amount":{"type":"integer","description":"The number of trx participating in token issuance","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"asset_name":{"type":"string","description":"Token id, default hexString","default":"1000001031303030303031"},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Proposalapprove = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Approver address","default":"TUeTYVYJFfmBj3hVyopAZB97yc432Aay4N"},"proposal_id":{"type":"integer","description":"Proposal ID","default":89,"format":"int32","minimum":-2147483648,"maximum":2147483647},"is_add_approval":{"type":"boolean","description":"Approved","default":true},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional.Whehter the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Proposalcreate = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Address of the transaction creator","default":"TCuM8e98jmPwT1RU2jW7dekUC5HpXbGzFG"},"parameters":{"type":"string","description":"Proposal parameters","default":"[{\"key\": 0,\"value\": 100000},{\"key\": 1,\"value\": 2}]","format":"json"},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional.Whehter the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Proposaldelete = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Address of proposal owner.","default":"TCuM8e98jmPwT1RU2jW7dekUC5HpXbGzFG"},"proposal_id":{"type":"integer","description":"Proposal ID","default":89,"format":"int32","minimum":-2147483648,"maximum":2147483647},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional.Whehter the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Scanshieldedtrc20Notesbyivk = {"body":{"type":"object","required":["start_block_index","end_block_index","shielded_TRC20_contract_address","ivk","ak","nk"],"properties":{"start_block_index":{"type":"integer","format":"int32","minimum":-2147483648,"maximum":2147483647},"end_block_index":{"type":"integer","format":"int32","minimum":-2147483648,"maximum":2147483647},"shielded_TRC20_contract_address":{"type":"string"},"ivk":{"type":"string"},"ak":{"type":"string"},"nk":{"type":"string"},"visible":{"type":"boolean"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Scanshieldedtrc20Notesbyovk = {"body":{"type":"object","required":["start_block_index","end_block_index","shielded_TRC20_contract_address","ovk"],"properties":{"start_block_index":{"type":"integer","format":"int32","minimum":-2147483648,"maximum":2147483647},"end_block_index":{"type":"integer","format":"int32","minimum":-2147483648,"maximum":2147483647},"shielded_TRC20_contract_address":{"type":"string"},"ovk":{"type":"string"},"visible":{"type":"boolean"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Transferasset = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address, default hexString","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"to_address":{"type":"string","description":"receiving address, default hexString","default":"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1"},"asset_name":{"type":"string","description":"Token id, default hexString","default":"31303030303031"},"amount":{"type":"integer","default":null,"format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true},"extra_data":{"type":"string","description":"Optional, totes on the transaction, HEX format"}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Triggerconstantcontract = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address that triggers the contract. If visible=true, use base58check format, otherwise use hex format. For constant call you can use the all-zero address.","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"contract_address":{"type":"string","description":"Smart contract address. If visible=true, use base58check format, otherwise use hex format.","default":"TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs"},"function_selector":{"type":"string","description":"Function call, must not be left blank.","default":"balanceOf(address)"},"parameter":{"type":"string","description":"Parameter encoding needs to be in accordance with the ABI rules, the rules are more complicated, users can use the ethers library to encode,For details, please refer to the document-Guide-Smart Contract-Best Practice-Parameter Encoding and Decoding.","default":"000000000000000000000000a614f803b6fd780986a42c78ec9c7f77e6ded13c"},"data":{"type":"string","description":"The bytecode of the contract or the data for interacting with smart contracts, including the contract function and parameters. You can choose to use this field, or you can choose to use function_selector and parameter for contract interaction. When both of data and function_selector exist, function_selector is preferred"},"call_value":{"type":"integer","description":"Amount of TRX transferred to the contract with this transaction, the unit is sun. This field may be used when estimating energy consumption.","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"call_token_value":{"type":"integer","description":"Amount of TRC10 token transferred with this transaction","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"token_id":{"type":"integer","description":"TRC10 token id","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"visible":{"type":"boolean","description":"Optional.Whehter the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean","default":true,"examples":[true]}}},"constant_result":{"type":"array","items":{"type":"string","examples":["000000000000000000000000000000000000000000000000000009a1832a6361"]}}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Triggersmartcontract = {"body":{"type":"object","required":["owner_address","contract_address","fee_limit"],"properties":{"owner_address":{"type":"string","description":"Address that triggers the contract, converted to a hex string.","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"contract_address":{"type":"string","description":"Contract address, converted to a hex string","default":"TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs"},"function_selector":{"type":"string","description":"Function call, must not be left blank","default":"transfer(address,uint256)"},"parameter":{"type":"string","description":"Parameter encoding needs to be in accordance with the ABI rules, the rules are more complicated, users can use the ethers library to encode,For details, please refer to the document-Guide-Smart Contract-Best Practice-Parameter Encoding and Decoding.","default":"00000000000000000000004115208EF33A926919ED270E2FA61367B2DA3753DA0000000000000000000000000000000000000000000000000000000000000032"},"data":{"type":"string","description":"The data for interacting with smart contracts, including the contract function and parameters. You can choose to use this field, or you can choose to use function_selector and parameter for contract interaction. When both of data and function_selector exist, function_selector is preferred"},"fee_limit":{"type":"integer","description":"Maximum TRX consumption, measured in SUN (1 TRX = 1,000,000 SUN).","default":1000000000,"format":"int32","minimum":-2147483648,"maximum":2147483647},"call_value":{"type":"integer","description":"Amount of TRX transferred with this transaction, measured in SUN (1 TRX = 1,000,000 SUN).","default":0,"format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"call_token_value":{"type":"integer","description":"Amount of TRC10 token transferred with this transaction","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"token_id":{"type":"integer","description":"TRC10 token id","format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"Permission_id":{"type":"integer","description":"Optional, for multi-signature","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional. Whehter the address is in base58check format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Undelegateresource1 = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address, default hexString","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"receiver_address":{"type":"string","description":"Resource receiver address","default":"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1"},"balance":{"type":"integer","description":"Amount of TRX staked for resources to be delegated, unit is sun","default":1000000,"format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"resource":{"type":"string","description":"Resource type: 'BANDWIDTH' or 'ENERGY'","default":"BANDWIDTH"},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Unfreezeasset = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address, default hexString","default":"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1"},"permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Unfreezebalancev21 = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address, default hexString","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"unfreeze_balance":{"type":"integer","description":"The amount of TRX to unstake, in sun","default":1000000,"format":"int64","minimum":-9223372036854776000,"maximum":9223372036854776000},"resource":{"type":"string","description":"Resource type: 'BANDWIDTH' or 'ENERGY'","default":"BANDWIDTH"},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Updateaccount = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner_address is the account address to be modified, converted to a hex string","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"account_name":{"type":"string","description":"Account_name is the name of the account, converted to a hex string","default":"0x7570646174654e616d6531353330383933343635353139"},"visible":{"type":"boolean","description":"Optional,whether the address is in base58 format","default":true},"Permission_id":{"type":"integer","description":"Optional,for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Updatewitness = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address, default hexString","default":"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1"},"update_url":{"type":"string","description":"Website url, default hexString"},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Validateaddress = {"body":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"Address should be in base58checksum, hexString, or base64 format.","default":"TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs"},"visible":{"type":"boolean","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"result":{"type":"boolean","default":true,"examples":[true]}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Votewitnessaccount = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address, default hexString","default":"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1"},"votes":{"type":"array","description":"'vote_address' stands for the address of the witness you want to vote, default hexString, 'vote_count' stands for the number of votes you want to vote","items":{"properties":{"vote_address":{"type":"string","default":"41e552f6487585c2b58bc2c9bb4492bc1f17132cd0"},"vote_count":{"type":"integer","default":0,"format":"int32","minimum":-2147483648,"maximum":2147483647}},"type":"object"}},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletDeploycontract = {"body":{"type":"object","properties":{"abi":{"type":"string","description":"Smart Contract's Application Binary Interface","default":"\"[{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"key\\\",\\\"type\\\":\\\"uint256\\\"},{\\\"name\\\":\\\"value\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"name\\\":\\\"set\\\",\\\"outputs\\\":[],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"key\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"name\\\":\\\"get\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"value\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"}]\"","format":"json"},"bytecode":{"type":"string","description":"The compiled contract's identifier, used to interact with the Virtual Machine.","default":"608060405234801561001057600080fd5b5060de8061001f6000396000f30060806040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631ab06ee58114604d5780639507d39a146067575b600080fd5b348015605857600080fd5b506065600435602435608e565b005b348015607257600080fd5b50607c60043560a0565b60408051918252519081900360200190f35b60009182526020829052604090912055565b600090815260208190526040902054905600a165627a7a72305820fdfe832221d60dd582b4526afa20518b98c2e1cb0054653053a844cf265b25040029"},"fee_limit":{"type":"integer","description":"Maximum TRX consumption, measured in SUN (1 TRX = 1,000,000 SUN).","format":"int32","minimum":-2147483648,"maximum":2147483647},"parameter":{"type":"string","description":"Parameter passed to the constructor of the contract. Call the virtual machine format of the parameter [1, 2], use the js tool provided by remix, convert the parameter array [1, 2] called by the contract caller into the parameter format required by the virtual machine."},"origin_energy_limit":{"type":"integer","description":"The max energy which will be consumed by the owner in the process of execution or creation of the contract, is an integer which should be greater than 0.","format":"int32","minimum":-2147483648,"maximum":2147483647},"owner_address":{"type":"string","description":"Contract owner address, converted to a hex string","default":"TJmmqjb1DK9TTZbQXzRQ2AuA94z4gKAPFh"},"name":{"type":"string","description":"Contract name","default":"SomeContract"},"call_value":{"type":"integer","description":"Amount of TRX transferred with this transaction, measured in SUN (1TRX = 1,000,000 SUN)","format":"int32","minimum":-2147483648,"maximum":2147483647},"consume_user_resource_percent":{"type":"integer","description":"The same as User Pay Ratio. The percentage of resources specified for users who use this contract. This field accepts integers between [0, 100]. If it is 0, it means the user does not consume resources until the developer resources are exhausted. However, it is strongly recommended to set the value between 1 and 99 (inclusive). This is prevent the contract developer from potential malicious infinite loop time out attacks.","format":"int32","minimum":-2147483648,"maximum":2147483647},"Permission_id":{"type":"integer","description":"Optional. Whehter the address is in base58 format.","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional. Whehter the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletGetblockbylatestnum = {"body":{"type":"object","properties":{"num":{"type":"integer","description":"The number of blocks to query","default":5,"format":"int32","minimum":-2147483648,"maximum":2147483647}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletGetblockbynum = {"body":{"type":"object","properties":{"num":{"type":"integer","description":"num is the block height","default":200,"format":"int32","minimum":-2147483648,"maximum":2147483647}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"blockID":{"type":"string","examples":["00000000000000c82a54a3bbdc956e1ddebc903f29b8daf28505b56f55a3f87d"]},"block_header":{"type":"object","properties":{"raw_data":{"type":"object","properties":{"number":{"type":"integer","default":0,"examples":[200]},"txTrieRoot":{"type":"string","examples":["0000000000000000000000000000000000000000000000000000000000000000"]},"witness_address":{"type":"string","examples":["411661f25387370c9cd3a9a5d97e60ca90f4844e7e"]},"parentHash":{"type":"string","examples":["00000000000000c7c8f27726916dfddca3c1c3481eb01da8a08938263674cea4"]},"timestamp":{"type":"integer","default":0,"examples":[1529892138000]}}},"witness_signature":{"type":"string","examples":["691e9116963b54ef7eb07692266319b029217e4d4ae8e8cb97e341617460f3822eff149c690aac6f2e0ad27d0af4fa8824d113d7a71c091245f778438ca4bde801"]}}}},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletGetbrokerage = {"body":{"type":"object","properties":{"address":{"type":"string","description":"Super representative's account address","default":"TGj1Ej1qRzL9feLTLhjwgxXF4Ct6GTWg2U"},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletGetchainparameters = {"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletGetcontract = {"body":{"type":"object","properties":{"value":{"type":"string","description":"Contract address, converted to a hex string.","default":"TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs"},"visible":{"type":"boolean","description":"Optional, is address in visible format(base58check) or hex?","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletGetexchangebyid = {"body":{"type":"object","properties":{"id":{"type":"integer","description":"Transaction Pair ID","default":1,"format":"int32","minimum":-2147483648,"maximum":2147483647}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletGetnodeinfo = {"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletGetnowblock = {"response":{"200":{"type":"object","properties":{"blockID":{"type":"string","examples":["00000000000080f82038aa301eda07eb27906589dd849d1c9ba5d84af94cf038"]},"block_header":{"type":"object","properties":{"raw_data":{"type":"object","properties":{"number":{"type":"integer","default":0,"examples":[33016]},"txTrieRoot":{"type":"string","examples":["0000000000000000000000000000000000000000000000000000000000000000"]},"witness_address":{"type":"string","examples":["41928c9af0651632157ef27a2cf17ca72c575a4d21"]},"parentHash":{"type":"string","examples":["00000000000080f7b502cb572e67f3ad8e75558c0cd64f54cc7c0697f08000a0"]},"version":{"type":"integer","default":0,"examples":[3]},"timestamp":{"type":"integer","default":0,"examples":[1536713433000]}}},"witness_signature":{"type":"string","examples":["917101db1a7f9252fa3fef139acc07153876b0a4a46e57a235f9b1578bb6da2f12d1a4bc09350e3c5b609353876ffdd581bd903ce31304e42066e363853cf77d00"]}}}},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletGetreward = {"body":{"type":"object","properties":{"address":{"type":"string","description":"User's address","default":"TGj1Ej1qRzL9feLTLhjwgxXF4Ct6GTWg2U"},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletGettransactionbyid = {"body":{"type":"object","properties":{"value":{"type":"string","description":"Transaction ID","default":"7c2d4206c03a883dd9066d620335dc1be272a8dc733cfa3f6d10308faa37facc"},"visible":{"type":"boolean","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{"ret":{"type":"array","items":{"type":"object","properties":{"contractRet":{"type":"string","examples":["SUCCESS"]}}}},"signature":{"type":"array","items":{"type":"string","examples":["ffbf691a89d95f6ad8175611c7d334c8159b95ff9c1e83872e7670103b185e85faf0a394b23d99581385d38038ab5c4684759c864a5621009f6e95da0a5feab501"]}},"txID":{"type":"string","examples":["d0807adb3c5412aa150787b944c96ee898c997debdc27e2f6a643c771edb5933"]},"raw_data":{"type":"object","properties":{"contract":{"type":"array","items":{"type":"object","properties":{"parameter":{"type":"object","properties":{"value":{"type":"object","properties":{"amount":{"type":"integer","default":0,"examples":[16]},"asset_name":{"type":"string","examples":["54726f6e696373"]},"owner_address":{"type":"string","examples":["414a5fe0179f2dd9c900194e63d661863cd0ade7b0"]},"to_address":{"type":"string","examples":["41718de6b323652d1257437ace160c4f4198aae4e1"]}}},"type_url":{"type":"string","examples":["type.googleapis.com/protocol.TransferAssetContract"]}}},"type":{"type":"string","examples":["TransferAssetContract"]}}}},"ref_block_bytes":{"type":"string","examples":["6bdd"]},"ref_block_hash":{"type":"string","examples":["1616edaf3a57fe19"]},"expiration":{"type":"integer","default":0,"examples":[1546455678000]},"timestamp":{"type":"integer","default":0,"examples":[1546455620175]}}}},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletListexchanges = {"metadata":{"allOf":[{"type":"object","properties":{"visible":{"type":"boolean","$schema":"https://json-schema.org/draft/2020-12/schema#"}},"required":[]}]},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletListnodes = {"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletListproposals = {"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletUpdateasset = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"The issuers address of the token, default hexString","default":"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1"},"description":{"type":"string","description":"The description of token, default hexString"},"url":{"type":"string","description":"The token's website url, default hexString"},"new_limit":{"type":"integer","description":"Each token holder's free bandwidth","format":"int32","minimum":-2147483648,"maximum":2147483647},"new_public_limit":{"type":"integer","description":"The total free bandwidth of the token","format":"int32","minimum":-2147483648,"maximum":2147483647},"permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletUpdatebrokerage = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Super representative's account address","default":"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1"},"brokerage":{"type":"integer","description":"The brokerage ratio of the super representative, for example: 20 means 20%, 100 means 100%","default":20,"format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletUpdateenergylimit = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Transaction creator address, in hex string format.","default":"TSNEe5Tf4rnc9zPMNXfaTF5fZfHDDH8oyW"},"contract_address":{"type":"string","description":"The address of the contract to be modified, in hex string format.","default":"TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs"},"origin_energy_limit":{"type":"integer","description":"The maximum energy the creator sets. The greatest amount of energy the creator consumes during contract execution or creation process.","default":100000000,"format":"int32","minimum":-2147483648,"maximum":2147483647},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional.Whehter the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const WalletUpdatesetting = {"body":{"type":"object","required":["owner_address","contract_address","consume_user_resource_percent"],"properties":{"owner_address":{"type":"string","description":"Transaction creator address, in hex string format.","default":"TSNEe5Tf4rnc9zPMNXfaTF5fZfHDDH8oyW"},"contract_address":{"type":"string","description":"The address of the contract to be modified, in hex string format.","default":"TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs"},"consume_user_resource_percent":{"type":"integer","description":"Consume user's resource percentage. It should be an integer between [0, 100]. if 0, means it does not consume user's resource until the developer's resource has been used up","default":10,"format":"int32","minimum":-2147483648,"maximum":2147483647},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647},"visible":{"type":"boolean","description":"Optional.Whehter the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Withdrawbalance = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Super representative or user address","default":"TGj1Ej1qRzL9feLTLhjwgxXF4Ct6GTWg2U"},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +const Withdrawexpireunfreeze = {"body":{"type":"object","properties":{"owner_address":{"type":"string","description":"Owner address, default hexString","default":"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"},"visible":{"type":"boolean","description":"Optional, Whether the address is in base58 format.","default":true},"Permission_id":{"type":"integer","description":"Optional, for multi-signature use","format":"int32","minimum":-2147483648,"maximum":2147483647}},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"response":{"200":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"},"400":{"type":"object","properties":{},"$schema":"https://json-schema.org/draft/2020-12/schema#"}}} as const +; +export { AccountCreateaccount, AccountGetaccount, AccountResourcesFreezebalance, AccountResourcesUnfreezebalance, Accountpermissionupdate, Broadcasthex, Broadcasttransaction, Cancelallunfreezev2, Clearabi, Createaddress, Createassetissue, Createshieldedcontractparameters, Createspendauthsig, Createtransaction, Createwitness, Delegateresource1, Easytransfer, Easytransferasset, Easytransferassetbyprivate, Easytransferbyprivate, Estimateenergy, Exchangecreate, Exchangeinject, Exchangetransaction, Exchangewithdraw, Freezebalancev21, Generateaddress, Getaccountbalance, Getaccountnet, Getaccountresource, Getakfromask, Getassetissuebyaccount, Getassetissuebyid, GetassetissuebynameCopy, GetassetissuelistbynameCopy, Getavailableunfreezecount1, Getbandwidthprices, Getblock1, Getblockbalance, Getblockbyid, Getblockbylimitnext, Getburntrx, Getcandelegatedmaxsize, Getcanwithdrawunfreezeamount1, Getcontractinfo, Getdelegatedresource, Getdelegatedresourceaccountindex, Getdelegatedresourceaccountindexv21, Getdelegatedresourcev2, Getdiversifier, Getexpandedspendingkey, Getincomingviewingkey, Getnewshieldedaddress, Getnextmaintenancetime, Getnkfromnsk, Getpaginatedassetissuelist, Getpendingsize, Getproposalbyid, Getspendingkey, Gettransactionfrompending, Gettransactioninfobyblocknum, Gettransactioninfobyid, Gettransactionlistfrompending, Gettransactionsign, Gettriggerinputforshieldedtrc20Contract, Getzenpaymentaddress, HttpGetapprovedlist, Isshieldedtrc20Contractnotespent, Participateassetissue, Proposalapprove, Proposalcreate, Proposaldelete, Scanshieldedtrc20Notesbyivk, Scanshieldedtrc20Notesbyovk, Transferasset, Triggerconstantcontract, Triggersmartcontract, Undelegateresource1, Unfreezeasset, Unfreezebalancev21, Updateaccount, Updatewitness, Validateaddress, Votewitnessaccount, WalletDeploycontract, WalletGetblockbylatestnum, WalletGetblockbynum, WalletGetbrokerage, WalletGetchainparameters, WalletGetcontract, WalletGetexchangebyid, WalletGetnodeinfo, WalletGetnowblock, WalletGetreward, WalletGettransactionbyid, WalletListexchanges, WalletListnodes, WalletListproposals, WalletUpdateasset, WalletUpdatebrokerage, WalletUpdateenergylimit, WalletUpdatesetting, Withdrawbalance, Withdrawexpireunfreeze } diff --git a/.api/apis/tron/types.ts b/.api/apis/tron/types.ts new file mode 100644 index 0000000..4633a48 --- /dev/null +++ b/.api/apis/tron/types.ts @@ -0,0 +1,276 @@ +import type { FromSchema } from 'json-schema-to-ts'; +import * as schemas from './schemas'; + +export type AccountCreateaccountBodyParam = FromSchema; +export type AccountCreateaccountResponse200 = FromSchema; +export type AccountCreateaccountResponse400 = FromSchema; +export type AccountGetaccountBodyParam = FromSchema; +export type AccountGetaccountResponse200 = FromSchema; +export type AccountGetaccountResponse400 = FromSchema; +export type AccountResourcesFreezebalanceBodyParam = FromSchema; +export type AccountResourcesFreezebalanceResponse200 = FromSchema; +export type AccountResourcesFreezebalanceResponse400 = FromSchema; +export type AccountResourcesUnfreezebalanceBodyParam = FromSchema; +export type AccountResourcesUnfreezebalanceResponse200 = FromSchema; +export type AccountResourcesUnfreezebalanceResponse400 = FromSchema; +export type AccountpermissionupdateBodyParam = FromSchema; +export type AccountpermissionupdateResponse200 = FromSchema; +export type AccountpermissionupdateResponse400 = FromSchema; +export type BroadcasthexBodyParam = FromSchema; +export type BroadcasthexResponse200 = FromSchema; +export type BroadcasthexResponse400 = FromSchema; +export type BroadcasttransactionBodyParam = FromSchema; +export type BroadcasttransactionResponse200 = FromSchema; +export type Cancelallunfreezev2BodyParam = FromSchema; +export type Cancelallunfreezev2Response200 = FromSchema; +export type Cancelallunfreezev2Response400 = FromSchema; +export type ClearabiBodyParam = FromSchema; +export type ClearabiResponse200 = FromSchema; +export type ClearabiResponse400 = FromSchema; +export type CreateaddressBodyParam = FromSchema; +export type CreateaddressResponse200 = FromSchema; +export type CreateaddressResponse400 = FromSchema; +export type CreateassetissueBodyParam = FromSchema; +export type CreateshieldedcontractparametersBodyParam = FromSchema; +export type CreateshieldedcontractparametersResponse200 = FromSchema; +export type CreateshieldedcontractparametersResponse400 = FromSchema; +export type CreatespendauthsigBodyParam = FromSchema; +export type CreatespendauthsigResponse200 = FromSchema; +export type CreatespendauthsigResponse400 = FromSchema; +export type CreatetransactionBodyParam = FromSchema; +export type CreatetransactionResponse200 = FromSchema; +export type CreatetransactionResponse400 = FromSchema; +export type CreatewitnessBodyParam = FromSchema; +export type CreatewitnessResponse200 = FromSchema; +export type CreatewitnessResponse400 = FromSchema; +export type Delegateresource1BodyParam = FromSchema; +export type Delegateresource1Response200 = FromSchema; +export type Delegateresource1Response400 = FromSchema; +export type EasytransferBodyParam = FromSchema; +export type EasytransferResponse200 = FromSchema; +export type EasytransferResponse400 = FromSchema; +export type EasytransferassetBodyParam = FromSchema; +export type EasytransferassetResponse200 = FromSchema; +export type EasytransferassetResponse400 = FromSchema; +export type EasytransferassetbyprivateBodyParam = FromSchema; +export type EasytransferassetbyprivateResponse200 = FromSchema; +export type EasytransferassetbyprivateResponse400 = FromSchema; +export type EasytransferbyprivateBodyParam = FromSchema; +export type EasytransferbyprivateResponse200 = FromSchema; +export type EasytransferbyprivateResponse400 = FromSchema; +export type EstimateenergyBodyParam = FromSchema; +export type EstimateenergyResponse200 = FromSchema; +export type EstimateenergyResponse400 = FromSchema; +export type ExchangecreateBodyParam = FromSchema; +export type ExchangecreateResponse200 = FromSchema; +export type ExchangecreateResponse400 = FromSchema; +export type ExchangeinjectBodyParam = FromSchema; +export type ExchangeinjectResponse200 = FromSchema; +export type ExchangeinjectResponse400 = FromSchema; +export type ExchangetransactionBodyParam = FromSchema; +export type ExchangetransactionResponse200 = FromSchema; +export type ExchangetransactionResponse400 = FromSchema; +export type ExchangewithdrawBodyParam = FromSchema; +export type ExchangewithdrawResponse200 = FromSchema; +export type ExchangewithdrawResponse400 = FromSchema; +export type Freezebalancev21BodyParam = FromSchema; +export type Freezebalancev21Response200 = FromSchema; +export type Freezebalancev21Response400 = FromSchema; +export type GenerateaddressResponse200 = FromSchema; +export type GenerateaddressResponse400 = FromSchema; +export type GetaccountbalanceBodyParam = FromSchema; +export type GetaccountbalanceResponse200 = FromSchema; +export type GetaccountbalanceResponse400 = FromSchema; +export type GetaccountnetBodyParam = FromSchema; +export type GetaccountnetResponse200 = FromSchema; +export type GetaccountresourceBodyParam = FromSchema; +export type GetaccountresourceResponse200 = FromSchema; +export type GetaccountresourceResponse400 = FromSchema; +export type GetakfromaskBodyParam = FromSchema; +export type GetakfromaskResponse200 = FromSchema; +export type GetakfromaskResponse400 = FromSchema; +export type GetassetissuebyaccountBodyParam = FromSchema; +export type GetassetissuebyidBodyParam = FromSchema; +export type GetassetissuebynameCopyBodyParam = FromSchema; +export type GetassetissuelistbynameCopyBodyParam = FromSchema; +export type Getavailableunfreezecount1BodyParam = FromSchema; +export type Getavailableunfreezecount1Response200 = FromSchema; +export type Getavailableunfreezecount1Response400 = FromSchema; +export type GetbandwidthpricesResponse200 = FromSchema; +export type Getblock1BodyParam = FromSchema; +export type Getblock1Response200 = FromSchema; +export type GetblockbalanceBodyParam = FromSchema; +export type GetblockbalanceResponse200 = FromSchema; +export type GetblockbalanceResponse400 = FromSchema; +export type GetblockbyidBodyParam = FromSchema; +export type GetblockbyidResponse200 = FromSchema; +export type GetblockbylimitnextBodyParam = FromSchema; +export type GetblockbylimitnextResponse200 = FromSchema; +export type GetblockbylimitnextResponse400 = FromSchema; +export type GetburntrxResponse200 = FromSchema; +export type GetcandelegatedmaxsizeBodyParam = FromSchema; +export type GetcandelegatedmaxsizeResponse200 = FromSchema; +export type GetcandelegatedmaxsizeResponse400 = FromSchema; +export type Getcanwithdrawunfreezeamount1BodyParam = FromSchema; +export type Getcanwithdrawunfreezeamount1Response200 = FromSchema; +export type Getcanwithdrawunfreezeamount1Response400 = FromSchema; +export type GetcontractinfoBodyParam = FromSchema; +export type GetcontractinfoResponse200 = FromSchema; +export type GetcontractinfoResponse400 = FromSchema; +export type GetdelegatedresourceBodyParam = FromSchema; +export type GetdelegatedresourceResponse200 = FromSchema; +export type GetdelegatedresourceResponse400 = FromSchema; +export type GetdelegatedresourceaccountindexBodyParam = FromSchema; +export type GetdelegatedresourceaccountindexResponse200 = FromSchema; +export type GetdelegatedresourceaccountindexResponse400 = FromSchema; +export type Getdelegatedresourceaccountindexv21BodyParam = FromSchema; +export type Getdelegatedresourceaccountindexv21Response200 = FromSchema; +export type Getdelegatedresourceaccountindexv21Response400 = FromSchema; +export type Getdelegatedresourcev2BodyParam = FromSchema; +export type Getdelegatedresourcev2Response200 = FromSchema; +export type Getdelegatedresourcev2Response400 = FromSchema; +export type GetdiversifierResponse200 = FromSchema; +export type GetdiversifierResponse400 = FromSchema; +export type GetexpandedspendingkeyBodyParam = FromSchema; +export type GetexpandedspendingkeyResponse200 = FromSchema; +export type GetexpandedspendingkeyResponse400 = FromSchema; +export type GetincomingviewingkeyBodyParam = FromSchema; +export type GetincomingviewingkeyResponse200 = FromSchema; +export type GetincomingviewingkeyResponse400 = FromSchema; +export type GetnewshieldedaddressResponse200 = FromSchema; +export type GetnewshieldedaddressResponse400 = FromSchema; +export type GetnextmaintenancetimeResponse200 = FromSchema; +export type GetnextmaintenancetimeResponse400 = FromSchema; +export type GetnkfromnskBodyParam = FromSchema; +export type GetnkfromnskResponse200 = FromSchema; +export type GetnkfromnskResponse400 = FromSchema; +export type GetpaginatedassetissuelistBodyParam = FromSchema; +export type GetpendingsizeResponse200 = FromSchema; +export type GetpendingsizeResponse400 = FromSchema; +export type GetproposalbyidBodyParam = FromSchema; +export type GetproposalbyidResponse200 = FromSchema; +export type GetproposalbyidResponse400 = FromSchema; +export type GetspendingkeyResponse200 = FromSchema; +export type GetspendingkeyResponse400 = FromSchema; +export type GettransactionfrompendingBodyParam = FromSchema; +export type GettransactionfrompendingResponse200 = FromSchema; +export type GettransactionfrompendingResponse400 = FromSchema; +export type GettransactioninfobyblocknumBodyParam = FromSchema; +export type GettransactioninfobyblocknumResponse200 = FromSchema; +export type GettransactioninfobyblocknumResponse400 = FromSchema; +export type GettransactioninfobyidBodyParam = FromSchema; +export type GettransactioninfobyidResponse200 = FromSchema; +export type GettransactionlistfrompendingResponse200 = FromSchema; +export type GettransactionlistfrompendingResponse400 = FromSchema; +export type GettransactionsignBodyParam = FromSchema; +export type GettransactionsignResponse200 = FromSchema; +export type GettransactionsignResponse400 = FromSchema; +export type Gettriggerinputforshieldedtrc20ContractResponse200 = FromSchema; +export type Gettriggerinputforshieldedtrc20ContractResponse400 = FromSchema; +export type GetzenpaymentaddressBodyParam = FromSchema; +export type GetzenpaymentaddressResponse200 = FromSchema; +export type GetzenpaymentaddressResponse400 = FromSchema; +export type HttpGetapprovedlistBodyParam = FromSchema; +export type HttpGetapprovedlistResponse200 = FromSchema; +export type Isshieldedtrc20ContractnotespentBodyParam = FromSchema; +export type Isshieldedtrc20ContractnotespentResponse200 = FromSchema; +export type Isshieldedtrc20ContractnotespentResponse400 = FromSchema; +export type ParticipateassetissueBodyParam = FromSchema; +export type ParticipateassetissueResponse200 = FromSchema; +export type ParticipateassetissueResponse400 = FromSchema; +export type ProposalapproveBodyParam = FromSchema; +export type ProposalapproveResponse200 = FromSchema; +export type ProposalapproveResponse400 = FromSchema; +export type ProposalcreateBodyParam = FromSchema; +export type ProposalcreateResponse200 = FromSchema; +export type ProposalcreateResponse400 = FromSchema; +export type ProposaldeleteBodyParam = FromSchema; +export type ProposaldeleteResponse200 = FromSchema; +export type ProposaldeleteResponse400 = FromSchema; +export type Scanshieldedtrc20NotesbyivkBodyParam = FromSchema; +export type Scanshieldedtrc20NotesbyivkResponse200 = FromSchema; +export type Scanshieldedtrc20NotesbyivkResponse400 = FromSchema; +export type Scanshieldedtrc20NotesbyovkBodyParam = FromSchema; +export type Scanshieldedtrc20NotesbyovkResponse200 = FromSchema; +export type Scanshieldedtrc20NotesbyovkResponse400 = FromSchema; +export type TransferassetBodyParam = FromSchema; +export type TransferassetResponse200 = FromSchema; +export type TransferassetResponse400 = FromSchema; +export type TriggerconstantcontractBodyParam = FromSchema; +export type TriggerconstantcontractResponse200 = FromSchema; +export type TriggerconstantcontractResponse400 = FromSchema; +export type TriggersmartcontractBodyParam = FromSchema; +export type TriggersmartcontractResponse200 = FromSchema; +export type TriggersmartcontractResponse400 = FromSchema; +export type Undelegateresource1BodyParam = FromSchema; +export type Undelegateresource1Response200 = FromSchema; +export type Undelegateresource1Response400 = FromSchema; +export type UnfreezeassetBodyParam = FromSchema; +export type UnfreezeassetResponse200 = FromSchema; +export type UnfreezeassetResponse400 = FromSchema; +export type Unfreezebalancev21BodyParam = FromSchema; +export type Unfreezebalancev21Response200 = FromSchema; +export type Unfreezebalancev21Response400 = FromSchema; +export type UpdateaccountBodyParam = FromSchema; +export type UpdateaccountResponse200 = FromSchema; +export type UpdateaccountResponse400 = FromSchema; +export type UpdatewitnessBodyParam = FromSchema; +export type UpdatewitnessResponse200 = FromSchema; +export type ValidateaddressBodyParam = FromSchema; +export type ValidateaddressResponse200 = FromSchema; +export type ValidateaddressResponse400 = FromSchema; +export type VotewitnessaccountBodyParam = FromSchema; +export type VotewitnessaccountResponse200 = FromSchema; +export type VotewitnessaccountResponse400 = FromSchema; +export type WalletDeploycontractBodyParam = FromSchema; +export type WalletDeploycontractResponse200 = FromSchema; +export type WalletDeploycontractResponse400 = FromSchema; +export type WalletGetblockbylatestnumBodyParam = FromSchema; +export type WalletGetblockbylatestnumResponse200 = FromSchema; +export type WalletGetblockbylatestnumResponse400 = FromSchema; +export type WalletGetblockbynumBodyParam = FromSchema; +export type WalletGetblockbynumResponse200 = FromSchema; +export type WalletGetbrokerageBodyParam = FromSchema; +export type WalletGetbrokerageResponse200 = FromSchema; +export type WalletGetbrokerageResponse400 = FromSchema; +export type WalletGetchainparametersResponse200 = FromSchema; +export type WalletGetchainparametersResponse400 = FromSchema; +export type WalletGetcontractBodyParam = FromSchema; +export type WalletGetcontractResponse200 = FromSchema; +export type WalletGetcontractResponse400 = FromSchema; +export type WalletGetexchangebyidBodyParam = FromSchema; +export type WalletGetexchangebyidResponse200 = FromSchema; +export type WalletGetexchangebyidResponse400 = FromSchema; +export type WalletGetnodeinfoResponse200 = FromSchema; +export type WalletGetnodeinfoResponse400 = FromSchema; +export type WalletGetnowblockResponse200 = FromSchema; +export type WalletGetrewardBodyParam = FromSchema; +export type WalletGetrewardResponse200 = FromSchema; +export type WalletGetrewardResponse400 = FromSchema; +export type WalletGettransactionbyidBodyParam = FromSchema; +export type WalletGettransactionbyidResponse200 = FromSchema; +export type WalletListexchangesMetadataParam = FromSchema; +export type WalletListexchangesResponse200 = FromSchema; +export type WalletListexchangesResponse400 = FromSchema; +export type WalletListnodesResponse200 = FromSchema; +export type WalletListnodesResponse400 = FromSchema; +export type WalletListproposalsResponse200 = FromSchema; +export type WalletListproposalsResponse400 = FromSchema; +export type WalletUpdateassetBodyParam = FromSchema; +export type WalletUpdateassetResponse200 = FromSchema; +export type WalletUpdateassetResponse400 = FromSchema; +export type WalletUpdatebrokerageBodyParam = FromSchema; +export type WalletUpdatebrokerageResponse200 = FromSchema; +export type WalletUpdatebrokerageResponse400 = FromSchema; +export type WalletUpdateenergylimitBodyParam = FromSchema; +export type WalletUpdateenergylimitResponse200 = FromSchema; +export type WalletUpdateenergylimitResponse400 = FromSchema; +export type WalletUpdatesettingBodyParam = FromSchema; +export type WalletUpdatesettingResponse200 = FromSchema; +export type WalletUpdatesettingResponse400 = FromSchema; +export type WithdrawbalanceBodyParam = FromSchema; +export type WithdrawbalanceResponse200 = FromSchema; +export type WithdrawbalanceResponse400 = FromSchema; +export type WithdrawexpireunfreezeBodyParam = FromSchema; +export type WithdrawexpireunfreezeResponse200 = FromSchema; +export type WithdrawexpireunfreezeResponse400 = FromSchema;