Class: AbstractClient
moralis-monorepo / @moralisweb3/common-aptos-utils / AbstractClient
Class: AbstractClient
@moralisweb3/common-aptos-utils.AbstractClient
Table of contents
Properties
Constructors
Methods
Properties
accounts
• Readonly
accounts: Object
Type declaration
Name | Type |
---|---|
getAccount | (request : GetAccountOperationRequest ) => Promise <AptosGetAccountResponse > |
getAccountModule | (request : GetAccountModuleOperationRequest ) => Promise <AptosGetAccountModuleResponse > |
getAccountModules | (request : GetAccountModulesOperationRequest ) => Promise <AptosGetAccountModuleResponse []> |
getAccountResource | (request : GetAccountResourceOperationRequest ) => Promise <AptosGetAccountResourceResponse > |
getAccountResources | (request : GetAccountResourcesOperationRequest ) => Promise <AptosGetAccountResourceResponse []> |
getEventsByCreationNumber | (request : GetEventsByCreationNumberOperationRequest ) => Promise <AptosGetEventsByCreationNumberResponse []> |
getEventsByEventHandle | (request : GetEventsByEventHandleOperationRequest ) => Promise <AptosGetEventsByEventHandleResponse []> |
blocks
• Readonly
blocks: Object
Type declaration
Name | Type |
---|---|
getBlockByHeight | (request : GetBlockByHeightOperationRequest ) => Promise <AptosBlock > |
getBlockByVersion | (request : GetBlockByVersionOperationRequest ) => Promise <AptosBlock > |
coins
• Readonly
coins: Object
Type declaration
collections
• Readonly
collections: Object
Type declaration
Name | Type |
---|---|
getNFTCollections | (request : GetNFTCollectionsOperationRequest ) => Promise <AptosNFTCollectionsByNameRangeResponse > |
getNFTCollectionsByCreator | (request : GetNFTCollectionsByCreatorOperationRequest ) => Promise <AptosNFTCollectionsByCreatorResponse > |
getNFTCollectionsByIds | (request : GetNFTCollectionsByIdsOperationRequest ) => Promise <AptosNFTCollectionItemResponse []> |
nfts
• Readonly
nfts: Object
Type declaration
transactions
• Readonly
transactions: Object
Type declaration
wallets
• Readonly
wallets: Object
Type declaration
Name | Type |
---|---|
getCoinBalancesByWallets | (request : GetCoinBalancesByWalletsOperationRequest ) => Promise <AptosGetCoinBalancesByWalletsResponse > |
getCoinTransfersByWalletAddresses | (request : GetCoinTransfersByWalletAddressesOperationRequest ) => Promise <AptosGetCoinTransfersByOwnerAddressesResponse > |
getHistoricalCoinBalancesByWallets | (request : GetHistoricalCoinBalancesByWalletsOperationRequest ) => Promise <AptosGetHistoricalCoinBalancesByWalletsResponse > |
getNFTByOwners | (request : GetNFTByOwnersOperationRequest ) => Promise <AptosNFTsByOwnersResponse > |
getWalletsNFTTransfers | (request : GetWalletsNFTTransfersOperationRequest ) => Promise <AptosNFTTransfersByWalletsResponse > |
Constructors
constructor
• new AbstractClient()
Methods
createEndpoint
▸ Protected
Abstract
createEndpoint<Request
, RequestJSON
, Response
, ResponseJSON
>(operation
): (request
: Request
) => Promise
<Response
>
Type parameters
Name |
---|
Request |
RequestJSON |
Response |
ResponseJSON |
Parameters
Name | Type |
---|---|
operation | OperationV3 <Request , RequestJSON , Response , ResponseJSON , null , null > |
Returns
fn
▸ (request
): Promise
<Response
>
Parameters
Name | Type |
---|---|
request | Request |
Returns
Promise
<Response
>
createEndpointWithBody
▸ Protected
Abstract
createEndpointWithBody<Request
, RequestJSON
, Response
, ResponseJSON
, Body
, BodyJSON
>(operation
): (request
: Request
, body
: Body
) => Promise
<Response
>
Type parameters
Name |
---|
Request |
RequestJSON |
Response |
ResponseJSON |
Body |
BodyJSON |
Parameters
Name | Type |
---|---|
operation | OperationV3 <Request , RequestJSON , Response , ResponseJSON , Body , BodyJSON > |
Returns
fn
▸ (request
, body
): Promise
<Response
>
Parameters
Name | Type |
---|---|
request | Request |
body | Body |
Returns
Promise
<Response
>