Comments (3)
Can you help me understand exactly what you'd like for the first point? Does this accomplish what you need?
const host: string = "myhost.com/api/prefix"
const port: number = 9650
const protocol: string = "https"
const networkID: number = 12345
const avalanche: Avalanche = new Avalanche(host, port, protocol, networkID)
I merged this PR which allows instantiating Avalanche
with undefined
as the port
. It properly creates the baseURL
w/out the :port
which I think might be what youβre looking for.
const ip: string = 'ava-mainnet.gateway.pokt.network/v1/6024534be1261e00308bfa38';
const protocol: string = 'https';
const networkID: number = 1;
const avalanche: Avalanche = new Avalanche(ip, undefined, protocol, networkID);
from avalanchejs.
@cgcardona yep, this will do!
from avalanchejs.
Excellent! Closing issue. Please feel free to reopen or create a new issue as needed. π©
from avalanchejs.
Related Issues (20)
- mnemonic.generateMnemnonic() Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'call')
- feature request: Banff Update Support
- getPreferredHRP returns incorrect prefix HOT 1
- Defaults.network[networkID].C.blockchainID returns incorrect Blockchain ID
- AvalancheCore.post request is not working with URL of format https://username:[email protected]
- How to get pending transactions HOT 1
- getAtomicTx method does not return the block height
- Pchain getBalance doesn't work
- Missing @avalabs/avalanchejs on yarn package manager
- X-Chain getting UTXO set example uses wrong variable!
- unable to parse block in js
- how to parse block in js
- getContainerByIndex problem with 3.17.0
- Decoding atomic transaction from byte data returned by `getAtomicTx` rpc call HOT 1
- Security: insecure deps are used, switch to better ones HOT 2
- Cannot use v3.18.1 for addPermissionlessValidator and addPermissionlessDelegator Transactions
- Export C-to-X example does not work HOT 3
- exec delegate.ts issue
- Add support for AddPermissionlessValidator and AddPermissionlessDelegator transactions in v3
- Support for Node18 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avalanchejs.