#' Connect to Ganache
#'
#' We are connecting to the local blockchain of Ganache using R
#'
#' @return A web3 connection vis web3.py
#' @export
connect_gananche <- function(){
library(reticulate)
use_python("/usr/local/bin/python")
web3 <- import("web3")
web3_ganache <- web3$HTTPProvider("HTTP://127.0.0.1:7545")
web3_ganache
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.