-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.go
More file actions
47 lines (39 loc) · 1.44 KB
/
main.go
File metadata and controls
47 lines (39 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package steemgosdk
import (
"github.com/steemit/steemgosdk/api"
"github.com/steemit/steemgosdk/auth"
"github.com/steemit/steemgosdk/broadcast"
"github.com/steemit/steemgosdk/client"
"github.com/steemit/steemgosdk/steemuri"
)
// GetClient creates a new Client instance.
func GetClient(url string) *client.Client {
return &client.Client{
Url: url,
MaxRetry: 5,
}
}
// Client represents the main Steem SDK client.
type Client = client.Client
// API represents the API layer for making RPC calls.
type API = api.API
// Broadcast represents the broadcast layer for signing and broadcasting transactions.
type Broadcast = broadcast.Broadcast
// Auth represents the auth layer for authentication and key management.
type Auth = auth.Auth
// SteemURI type aliases for the steemuri package.
type SteemURIParameters = steemuri.Parameters
type SteemURIDecodeResult = steemuri.DecodeResult
type SteemURIResolveOptions = steemuri.ResolveOptions
type SteemURIResolveResult = steemuri.ResolveResult
type SteemURITransactionConfirmation = steemuri.TransactionConfirmation
type SteemURIEncodeProtocol = steemuri.EncodeProtocol
// SteemURI function wrappers.
var (
SteemURIDecode = steemuri.Decode
SteemURIResolveTransaction = steemuri.ResolveTransaction
SteemURIResolveCallback = steemuri.ResolveCallback
SteemURIEncodeTx = steemuri.EncodeTx
SteemURIEncodeOp = steemuri.EncodeOp
SteemURIEncodeOps = steemuri.EncodeOps
)