How can I connect IoPay to a custom RPC

Hello I’m new into developing DApps and I’m following the tutorial in the documentation but I can’t connect IoPay to my local Blockchain. When I introduce the Url localhost:14014 it says: Invalid url.

1 Like

Are you talking about ioPay desktop or mobile?

For desktop version, you can try out here

For mobile, I don’t think we support that yet but let me ask

Yes, I mean IoPay Desktop, I’m trying to connect it to my local node, but as I said, I can’t. I’ve also tried with 127.0.0.1:14014.

There might be some issues with the cert – can you use inspect in chrome to see the actual error?

I don’t understand what you mean. Could you explain it?

I am running a local test standalone node, and wen I try to connect to it using the Custom RPC method, I get the following error:

It says POST http://localhost:14014/iotexapi.APIService/GetServerMeta net::ERR_INVALID_HTTP_RESPONSE

If I try to open the page in a browser I get a whole bunch of non ASCII characters back
����������@� - not sure what it is, maybe it’s binary data

Filed ioPay Desktop supports custom endpoint · Issue #1871 · iotexproject/iotex-desktop-wallet · GitHub to follow up

1 Like

IoPay desktop does not support the gRPC API directly, it requires a JSON rpc transcoded API.

The best way to interact natively with your local node is through ioctl command line client. Another option is to install our babel service (https://github.com/iotexproject/babel-api) locally, point it to your IoTeX node, then use metamask as a wallet and point it to the babel service