Class: StoreClient
capability/store.StoreClient
Client for interacting with the store/*
capabilities.
Hierarchy
↳
StoreClient
Constructors
constructor
• new StoreClient(agentData
, options?
)
Parameters
Name | Type |
---|---|
agentData | AgentData |
options? | Object |
options.serviceConf | undefined | ServiceConf |
Inherited from
Defined in
Properties
_agent
• Protected
_agent: Agent
Inherited from
Defined in
_serviceConf
• Protected
_serviceConf: ServiceConf
Inherited from
Defined in
Methods
_invocationConfig
▸ Protected
_invocationConfig(abilities
): Promise
<{ audience
: Principal
<`did:${string}:${string}`> ; issuer
: Signer
<`did:${string}:${string}`, SigAlg
> ; proofs
: Delegation
<Capabilities
>[] ; with
: `did:${string}:${string}` = resource }>
Parameters
Name | Type |
---|---|
abilities | Ability [] |
Returns
Promise
<{ audience
: Principal
<`did:${string}:${string}`> ; issuer
: Signer
<`did:${string}:${string}`, SigAlg
> ; proofs
: Delegation
<Capabilities
>[] ; with
: `did:${string}:${string}` = resource }>
Inherited from
Defined in
add
▸ add(car
, options?
): Promise
<CARLink
>
Store a DAG encoded as a CAR file.
Parameters
Name | Type | Description |
---|---|---|
car | Blob | CAR file data. |
options? | RequestOptions |
Returns
Promise
<CARLink
>
Defined in
list
▸ list(options?
): Promise
<ListResponse
<StoreListResult
>>
List CAR files stored to the resource.
Parameters
Name | Type |
---|---|
options? | ListRequestOptions |
Returns
Promise
<ListResponse
<StoreListResult
>>
Defined in
remove
▸ remove(link
, options?
): Promise
<void
>
Remove a stored CAR file by CAR CID.
Parameters
Name | Type | Description |
---|---|---|
link | CARLink | CID of CAR file to remove. |
options? | RequestOptions |
Returns
Promise
<void
>