File tree Expand file tree Collapse file tree 2 files changed +1251
-4
lines changed
app/src/main/kotlin/io/github/hosseinkarami_dev/near/rpc/client_app
client/src/main/kotlin/io/github/hosseinkarami_dev/near/rpc/client Expand file tree Collapse file tree 2 files changed +1251
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package io.github.hosseinkarami_dev.near.rpc.client_app
22
33import android.os.Bundle
44import androidx.core.app.ComponentActivity
5+ import io.github.hosseinkarami_dev.near.rpc.client.NearClient
56import io.ktor.client.HttpClient
67import io.ktor.client.engine.cio.CIO
78import io.ktor.client.plugins.contentnegotiation.ContentNegotiation
@@ -17,10 +18,10 @@ class MainActivity : ComponentActivity() {
1718 }
1819 }
1920
20- // val nearClient = NearClient(
21- // httpClient = httpClient,
22- // baseUrl = "https://rpc.mainnet.near.org" // or testnet: https://rpc.testnet.near.org
23- // )
21+ val nearClient = NearClient (
22+ httpClient = httpClient,
23+ baseUrl = " https://rpc.mainnet.near.org" // or testnet: https://rpc.testnet.near.org
24+ )
2425//
2526// lifecycleScope.launch {
2627// val response = nearClient.tx(
You can’t perform that action at this time.
0 commit comments