Skip to content

Commit 16f4129

Browse files
authored
feat: plat-6476 Update solana examples (#22)
* chore: update solana examples * chore: improvements * chore: update main readme file * chore: update package.json engined node version * chore: add test command * chore: remove access keys values from examples * chore(pr suggestions): apply PR suggestions * chore(fix examples): fix examples
1 parent cc00a84 commit 16f4129

32 files changed

+789
-92
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import { Configuration, RelayersApi } from '@openzeppelin/relayer-sdk';
4949

5050
const config = new Configuration({
5151
basePath: 'https://your-path.com',
52-
accessToken: 'Bearer example-123456',
52+
accessToken: '',
5353
});
5454

5555
const relayersApi = new RelayersApi(config);

examples/evm/getTransactionById.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ import { Configuration, RelayersApi } from '../../src';
1818
// example dev config
1919
const config = new Configuration({
2020
basePath: 'http://localhost:8080',
21-
accessToken: 'Bearer example-123456',
21+
accessToken: '', // replace with your actual api key
2222
});
2323

2424
const relayersApi = new RelayersApi(config);
2525

26+
// replace with your actual ids
2627
const relayer_id = 'sepolia-example';
27-
28-
const transaction_id = '305ff83d-6653-465f-8fa3-e8a46271fb83';
28+
const transaction_id = '7283c042-86e8-4831-9439-90da9e28a0f1';
2929

3030
relayersApi
3131
.getTransactionById(relayer_id, transaction_id)

examples/evm/getTransactionByNonce.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ import { Configuration, RelayersApi } from '../../src';
1818
// example dev config
1919
const config = new Configuration({
2020
basePath: 'http://localhost:8080',
21-
accessToken: 'Bearer example-123456',
21+
accessToken: '', // replace with your actual api key
2222
});
2323

2424
const relayersApi = new RelayersApi(config);
2525

26+
// replace with your actual ids
2627
const relayer_id = 'sepolia-example';
2728

2829
const nonce = 44;

examples/evm/listTransactions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ import { Configuration, RelayersApi } from '../../src';
1818
// example dev config
1919
const config = new Configuration({
2020
basePath: 'http://localhost:8080',
21-
accessToken: 'Bearer example-123456',
21+
accessToken: '', // replace with your actual api key
2222
});
2323

2424
const relayersApi = new RelayersApi(config);
2525

26+
// replace with your actual ids
2627
const relayer_id = 'sepolia-example';
2728

2829
relayersApi

examples/evm/sendTransactionEIP1559.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ import { Configuration, RelayersApi } from '../../src';
1818
// example dev config
1919
const config = new Configuration({
2020
basePath: 'http://localhost:8080',
21-
accessToken: 'Bearer example-123456',
21+
accessToken: '', // replace with your actual api key
2222
});
2323

2424
const relayersApi = new RelayersApi(config);
2525

26+
// replace with your actual ids
2627
const relayer_id = 'sepolia-example';
2728

2829
relayersApi

examples/evm/sendTransactionLegacy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ import { Configuration, RelayersApi } from '../../src';
1818
// example dev config
1919
const config = new Configuration({
2020
basePath: 'http://localhost:8080',
21-
accessToken: 'Bearer example-123456',
21+
accessToken: '', // replace with your actual api key
2222
});
2323

2424
const relayersApi = new RelayersApi(config);
2525

26+
// replace with your actual ids
2627
const relayer_id = 'sepolia-example';
2728

2829
relayersApi

examples/evm/sendTransactionSpeed.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ import { Configuration, RelayersApi, Speed } from '../../src';
1818
// example dev config
1919
const config = new Configuration({
2020
basePath: 'http://localhost:8080',
21-
accessToken: 'Bearer example-123456',
21+
accessToken: '', // replace with your actual api key
2222
});
2323

2424
const relayersApi = new RelayersApi(config);
2525

26+
// replace with your actual id
2627
const relayer_id = 'sepolia-example';
2728

2829
relayersApi

examples/get-relayer-balance/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ import { Configuration, RelayersApi } from '../../src';
1818
// example dev config
1919
const config = new Configuration({
2020
basePath: 'http://localhost:8080',
21-
accessToken: 'Bearer example-123456',
21+
accessToken: '', // replace with your actual api key
2222
});
2323

2424
const relayersApi = new RelayersApi(config);
2525

26+
// replace with your actual ids
2627
const relayer_id = 'solana-example';
2728

2829
relayersApi

examples/get-relayer/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ import { Configuration, RelayersApi } from '../../src';
1818
// example dev config
1919
const config = new Configuration({
2020
basePath: 'http://localhost:8080',
21-
accessToken: 'Bearer example-123456',
21+
accessToken: '', // replace with your actual api key
2222
});
2323

2424
const relayersApi = new RelayersApi(config);
2525

26+
// replace with your actual ids
2627
const relayer_id = 'solana-example';
2728

2829
relayersApi

examples/list-relayers/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { Configuration, RelayersApi } from '../../src';
1818
// example dev config
1919
const config = new Configuration({
2020
basePath: 'http://localhost:8080',
21-
accessToken: 'Bearer example-123456',
21+
accessToken: '', // replace with your actual api key
2222
});
2323

2424
const relayersApi = new RelayersApi(config);

0 commit comments

Comments
 (0)