You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The address data is good. print("Address data: \(r), \(r.address), \(r.txCount), \(r.sentSum)").
Since the first query passes, I'm guessing that the environment variable for my project id (API Key) is set correctly in the target's scheme.
However, during Query 2 I get:
Just to be clear, in the Blockfrost SDK docs the API Key and product id are the same string value correct? Docs say, "project_id token is automatically generated for each project."
Also, I'm using the address given in the sample. "addr1q8zu4smzyf2r2mfqjd6tc6vxf2p8rccdfk82ye3eut2udkw9etpkygj5x4kjpym5h35cvj5zw83s6nvw5fnrnck4cmvshkfm4y"
If I want to switch to a testnet I only need to change:
The project id (API Key)
The address to a testnet address i.e. [addr_test1vz95zjvtwm..]
The configuration to BlockfrostConfig.testnetDefault()
Is that correct?
Do you have a list of demo mainnet and testnet address we can use? I know we can just use an explorer to use any live mainnet address but what about testnet addresses?
These two where in your docs. "addr1q8zu4smzyf2r2mfqjd6tc6vxf2p8rccdfk82ye3eut2udkw9etpkygj5x4kjpym5h35cvj5zw83s6nvw5fnrnck4cmvshkfm4y"
@tysun if you refer to the Example application, it is a correct behaviour.
We set incorrect project id to demonstrate SDK behaviour when project ID is not set
config.projectId = "non-existent" // your project id here
Just to be clear, in the Blockfrost SDK docs the API Key and product id are the same string value correct? Docs say, "project_id token is automatically generated for each project."
Yes, API key and project_id are the same values. You have to obtain project_id at https://blockfrost.io
Do you have a list of demo mainnet and testnet address we can use?
You can use addresses from tests or use block explorer.
Ad testnet switch:
correct, use appropriate project_id, set it to the config or set environment variable BF_TESTNET_PROJECT_ID.
The address data is good.
print("Address data: \(r), \(r.address), \(r.txCount), \(r.sentSum)")
.Since the first query passes, I'm guessing that the environment variable for my project id (API Key) is set correctly in the target's scheme.
However, during Query 2 I get:
Just to be clear, in the Blockfrost SDK docs the
API Key
andproduct id
are the same string value correct? Docs say, "project_id token is automatically generated for each project."Also, I'm using the address given in the sample.
"addr1q8zu4smzyf2r2mfqjd6tc6vxf2p8rccdfk82ye3eut2udkw9etpkygj5x4kjpym5h35cvj5zw83s6nvw5fnrnck4cmvshkfm4y"
If I want to switch to a testnet I only need to change:
BlockfrostConfig.testnetDefault()
Is that correct?
Do you have a list of demo mainnet and testnet address we can use? I know we can just use an explorer to use any live mainnet address but what about testnet addresses?
These two where in your docs.
"addr1q8zu4smzyf2r2mfqjd6tc6vxf2p8rccdfk82ye3eut2udkw9etpkygj5x4kjpym5h35cvj5zw83s6nvw5fnrnck4cmvshkfm4y"
"addr_test1vz95zjvtwm9u9mc83uzsfj55tzwf99fgeyt3gmwm9gdw2xgwrvsa5"
The text was updated successfully, but these errors were encountered: