Class: AptosApi
moralis-monorepo / @moralisweb3/aptos-api / AptosApi
Class: AptosApi
@moralisweb3/aptos-api.AptosApi
Hierarchy
AbstractClient
↳
AptosApi
Table of contents
Methods
Properties
Methods
create
▸ Static
create(core?
): AptosApi
Parameters
Name | Type |
---|---|
core? | Core |
Returns
createEndpoint
▸ Protected
createEndpoint<Request
, RequestJSON
, Response
, ResponseJSON
>(operation
): (r
: Request
) => Promise
<Response
>
Type parameters
Name |
---|
Request |
RequestJSON |
Response |
ResponseJSON |
Parameters
Name | Type |
---|---|
operation | OperationV3 <Request , RequestJSON , Response , ResponseJSON , null , null > |
Returns
fn
▸ (r
): Promise
<Response
>
Parameters
Name | Type |
---|---|
r | Request |
Returns
Promise
<Response
>
Overrides
AbstractClient.createEndpoint
createEndpointWithBody
▸ Protected
createEndpointWithBody<Request
, RequestJSON
, Response
, ResponseJSON
, Body
, BodyJSON
>(operation
): (r
: Request
, b
: 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
▸ (r
, b
): Promise
<Response
>
Parameters
Name | Type |
---|---|
r | Request |
b | Body |
Returns
Promise
<Response
>
Overrides
AbstractClient.createEndpointWithBody
Properties
moduleName
▪ Static
Readonly
moduleName: "aptApi"