I am doing an integration of the FCL in kotlin and swift importing “com.portto.fcl.Fcl” (kotlin) and “FlowSDK” “FCL_SDK” (swift).
Is there a possibility to set the accessNode as it is done in JS SDK? and also to get the current accessNode where is connected?
For example in JS FLOW SDK it can be set like this:
How can we do on kotlin?
Hope someone can help.
there is no easy way as far as I can see. https://github.com/blocto/fcl-swift/blob/256527d50476db2c85582bb7036fdb037425b855/Sources/FCL-SDK/FCL.swift#L25-L35
it is using config.network in many places, none of them supporting custom option.
Thanks for your response bluesing.
Looking at the code, the network parameter is set with a .testnet or .mainnet, and does not accept to set a direct url:
Seems that the node access url is set depending those parameters but we do not fin the place where the url is set. Do you know where the access node url value is set?
checkout swizzling with swift ( hacky way to fix ) or you can just change SDK code (or better PR to blocto FCL )