@@ -112,22 +112,13 @@ func TestClient_DownloadChunkData(t *testing.T) {
112
112
// assert.NoError(t, err)
113
113
}
114
114
115
- func TestClient_GetTransactionData (t * testing.T ) {
116
- // proxy := "http://127.0.0.1:8001"
117
- client := NewClient ("https://arweave.net" )
118
- id := "lSHWbAfjJsK0so08BTTmHO_n809fGW2DYOMySsXHNuI"
119
- data , err := client .GetTransactionData (id , "json" )
120
- if err != nil {
121
- t .Log (err .Error ())
122
- }
123
-
124
- t .Log (string (data ))
125
- }
126
-
127
- func TestNew (t * testing.T ) {
128
- data := []byte ("this is a goar test small size file data" )
129
- a := utils .Base64Encode (data )
130
- t .Log (a )
115
+ func TestClient_Arql (t * testing.T ) {
116
+ // client := NewClient("https://arweave.dev")
117
+ // id := "PvLGaQzn9MOwucO91uuMGRnq8pj1qlwbURPqhmW0UiM"
118
+ //
119
+ // status, err := client.GetTransactionStatus(id)
120
+ // assert.NoError(t, err)
121
+ // t.Log(status)
131
122
}
132
123
133
124
func TestClient_VerifyTx (t * testing.T ) {
@@ -173,3 +164,22 @@ func TestGetTransaction(t *testing.T) {
173
164
// assert.Equal(t, "Pending",err.Error())
174
165
// assert.Nil(t, txStatus)
175
166
}
167
+
168
+ func TestClient_GetTransactionTags (t * testing.T ) {
169
+ arNode := "https://arweave.net"
170
+ cli := NewClient (arNode )
171
+ id := "gdXUJuj9EZm99TmeES7zRHCJtnJoP3XgYo_7KJNV8Vw"
172
+ tags , err := cli .GetTransactionTags (id )
173
+ assert .NoError (t , err )
174
+ assert .Equal (t , "App" , tags [0 ].Name )
175
+ assert .Equal (t , "Version" , tags [1 ].Name )
176
+ assert .Equal (t , "Owner" , tags [2 ].Name )
177
+ }
178
+
179
+ func TestClient_GetBlockByHeight (t * testing.T ) {
180
+ arNode := "https://arweave.net"
181
+ cli := NewClient (arNode )
182
+ block , err := cli .GetBlockByHeight (737432 )
183
+ assert .NoError (t , err )
184
+ assert .Equal (t , "7YeJpe53rFsEE03yKjGcBQAAw6efgVfSeGNLmPRGY4c" , block .Nonce )
185
+ }
0 commit comments