From 118b0af8c31d7e6fb1b00e68a55fe264898e017e Mon Sep 17 00:00:00 2001 From: eric-laurello <102970824+eric-laurello@users.noreply.github.com> Date: Thu, 15 Dec 2022 12:14:57 -0500 Subject: [PATCH] update rpc URL to be dynamic (#85) --- macros/snowflake_api/get_blockchain_api.sql | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/macros/snowflake_api/get_blockchain_api.sql b/macros/snowflake_api/get_blockchain_api.sql index cabe7c0..45699ea 100644 --- a/macros/snowflake_api/get_blockchain_api.sql +++ b/macros/snowflake_api/get_blockchain_api.sql @@ -107,7 +107,14 @@ INSERT INTO SELECT call, ethereum.streamline.udf_json_rpc_call( - 'https://osmosis-coke.allthatnode.com:56657/',{ 'x-allthatnode-api-key':( + ( + SELECT + rpc_url + FROM + osmosis._internal.api_keys + WHERE + provider = 'allthatnode' + ),{ 'x-allthatnode-api-key':( SELECT key FROM