HttpProvider class

The HTTP Provider allows sending requests using HTTP to a HTTP RPC server TCP port. It does not support subscriptions so you won't be able to listen to events such as new blocks or balance changes. It is usually preferable using the [WsProvider]

Inheritance

Constructors

HttpProvider(Uri url)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url Uri
final

Methods

connect() Future
override
disconnect() Future
override
isConnected() bool
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(String method, List params) Future<RpcResponse>
Send arbitrary message to RPC node
override
subscribe(String method, List params, {FutureOr<void> onCancel(String subscription)?}) Future<SubscriptionResponse>
Send subscribe message to RPC node
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited