agent/agent/index library
Classes
- Agent
- An Agent able to make calls and queries to a Replica.
- AgentFactory
- BaseRequest
- CallOptions
- Options when doing a {@link Agent.call} call.
- CallRequest
- CallResponseBody
- Credentials
- DefaultHttpAgentOption
- Endpoint
- Expiry
- HttpAgent
-
HttpAgentBaseRequest<
T extends WithToJson> - HttpAgentCallRequest
- HttpAgentOptions
- HttpAgentQueryRequest
- HttpAgentReadStateRequest
- HttpAgentRequestTransformFn
- HttpAgentSubmitRequest
- HttpResponseBody
-
Promise<
T> - ProxyAgent
-
ProxyMessage<
T> - ProxyMessageBase
- ProxyMessageCall
- ProxyMessageCallResponse
- ProxyMessageError
- ProxyMessageGetPrincipal
- ProxyMessageGetPrincipalResponse
- ProxyMessageKind
- ProxyMessageQuery
- ProxyMessageQueryResponse
- ProxyMessageReadState
- ProxyMessageReadStateResponse
- ProxyMessageStatus
- ProxyMessageStatusResponse
- ProxyStubAgent
- QueryFields
- Options when doing a {@link Agent.query} call.
- QueryRequest
- QueryResponse
- QueryResponseBase
- QueryResponseRejected
- QueryResponseReplied
- QueryResponseStatus
- QueryResponseWithStatus
- ReadRequestType
- ReadStateOptions
- Options when doing a {@link Agent.readState} call.
- ReadStateRequest
- ReadStateResponse
- ReadStateResponseResult
- ReplicaRejectCode
- Codes used by the replica for rejecting a message. See {@link https://sdk.dfinity.org/docs/interface-spec/#reject-codes | the interface spec}.
- Reply
- RequestStatusResponseStatus
- ResponseBody
-
Signed<
T> - SubmitRequestType
- SubmitResponse
-
UnSigned<
T> - WithToJson
Enums
Constants
- btoa → const String Function(dynamic value)
- DEFAULT_INGRESS_EXPIRY_DELTA_IN_MSECS → const int
- IC_ROOT_KEY → const String
Properties
Functions
-
makeNonceTransform(
[NonceFunc nonceFn = makeNonce]) → HttpAgentRequestTransformFnCall
Typedefs
-
Envelope<
T> = UnSigned< T> -
FetchFunc<
T> = Future< T> Function({dynamic body, required String endpoint, Map<String, String> ? headers, String? host, FetchMethod method}) -
HttpAgentRequest
= HttpAgentBaseRequest<
WithToJson> -
HttpAgentRequestTransformFnCall
= Future<
HttpAgentRequest?> Function(HttpAgentRequest args) - NonceFunc = Nonce Function()
- PromiseReject = Future Function(dynamic value)
- PromiseResolve = Future Function(dynamic value)
- ReadRequest = ReadStateRequest